更新时间:2022-10-30 15:08:09
尝试使用此CSS:
a:active,a:selected,a:visited {
border:none;
outline:none;
}
注意,这必须在任何 hover
规则。感谢 PEra 在建议使用 a:selected
的意见中,
/ em>在IE 9中工作。删除a:选择导致它在IE9中工作。
Active hyperlink texts are highlighted with dotted border. When using effects on such hyperlinks (fadeIn/fadeOut) it produces strange effects. How do I disable/remove the dotted border?
Try this CSS:
a:active, a:selected, a:visited {
border: none;
outline: none;
}
Note that this has to be after any a:hover
rules. Thanks to PEra in the comments for suggesting using the a:selected
selector as well.
NOTE
The above does not work in IE 9. Removing a:selected causes it to work in IE9.