开发者

How delete the border, which appears around a tag, when we click on it?

开发者 https://www.devze.com 2023-01-17 03:55 出处:网络
When we click on a tag, theborder is appear around it. In Mozilla that border has the color of a tag, so when i set the color of a tag same as the background color of content, the border disappears, b

When we click on a tag, the border is appear around it. In Mozilla that border has the color of a tag, so when i set the color of a tag same as the background color of content, the border disappears, but in IE that border always white, so i don't know how dele开发者_如何学Gote it.

Any ideas?

Thanks much


Remove outline.

a {
    outline: none;
}


Don’t.

This makes your site inaccessible to keyboard users. That may not sound like a big deal, but many people with relatively minor disabilities are unable to use a mouse.

At the very least, replace it with something else to indicate focus.


:link:focus, :visited:focus { 
-moz-outline: none; 
}

From: http://www.webmasterworld.com/forum21/8697.htm

0

精彩评论

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