a:hover,
a:focus {
color: #2a6496;
text-decoration: underline;
}
a:focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}转载于:https://www.cnblogs.com/family-626-77/p/5542593.html
本文介绍了一种使用CSS伪类a:hover和a:focus为链接设置颜色及下划线效果的方法,并详细展示了:focus伪类如何设置链接聚焦时的轮廓样式。
a:hover,
a:focus {
color: #2a6496;
text-decoration: underline;
}
a:focus {
outline: thin dotted #333;
outline: 5px auto -webkit-focus-ring-color;
outline-offset: -2px;
}转载于:https://www.cnblogs.com/family-626-77/p/5542593.html

被折叠的 条评论
为什么被折叠?