开发者

How to hide selected link box

Not sure about all browsers, but I know in IE if you click on a link and hold, the link gets a dotted box arou开发者_StackOverflow中文版nd it. Is there any way to stop that from happening? it's ugly on my site.


It's actually something you shouldn't remove as it is a accessibility feature but if you must:

http://haslayout.net/css-tuts/Removing-Dotted-Border-on-Clicked-Links


That border you're seeing is actually the outline (or the CSS2 version) so set outline: none; in your CSS. For example: http://jsfiddle.net/ambiguous/zLaq5/

However, as Stofke notes, you should probably just leave it alone as it is an accessibility feature.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜