问题是链接边框样式,我可以在悬停时更改它,但边框:visited
不起作用.这是我的例子:
a:link {
color: #536DFE;
text-decoration: none;
border-bottom: dashed 1px;
transition: all .3s ease-out;
}
a:hover {
border-bottom: solid 1px;
transform: scale(1.08);
}
a:visited {
color: #727272;
border-bottom: solid 1px;
}
Run Code Online (Sandbox Code Playgroud)
问题是最后一个a:visited
,border-bottom: solid 1px
被忽略了.怎么解决这个问题?