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.
精彩评论