问题在于链接边框样式,我可以在悬停时更改它,但是
问题在于最后一个
: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;
}
问题在于最后一个
a:visited
,border-bottom: solid 1px
被忽略了。如何解决?
width
值为先,然后再定义它的style
。因此:1px solid
将起作用。 - somethinghere:visited
实际上是:focus
。 - Andre Figueiredo