CSS - 不需要的边框底部 [英] CSS - Unwanted Border-Bottom

查看:692
本文介绍了CSS - 不需要的边框底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



基本代码是

p>

  a:link,a:visited {color:#000000; text-decoration:none; border-bottom:1px dotted#c6132e; } 

但是,我不希望它出现在所有链接,特别是主导航。当你点击任何链接,它就会显示出来。



在css的第56行,我放置这个代码来删除边框底部,但它不似乎正在工作:

  ul#main_nav li a:link,
ul#main_nav li a:visited
ul#main_nav li a:hover,
ul#main_nav li a:active {border-bottom:none; }

感谢第二套眼睛看看这个,帮我找到解决方案。 p>

谢谢!



BTW:这里是链接: http://www.rouviere.com/aav/index.html 只需点击任意主导航按钮即可。

解决方案

正如Timhessel所说,这是你的焦点大纲...虽然这不是建议你可以添加这个来摆脱它:

  ul#main_nav li a {outline-color:transparent; } 


Just doing a little touch up before finishing a conversion project and I have an unwanted border-bottom that needs to be removed.

The base code is:

a:link, a:visited   { color: #000000; text-decoration: none; border-bottom: 1px dotted #c6132e; }

However, I don't want it to show up on all links, particularly the main navigation. When you click on any of the links there it shows up.

On line 56 of the css I placed this code to remove the border-bottom, but it doesn't seem to be working:

ul#main_nav li a:link,
ul#main_nav li a:visited
ul#main_nav li a:hover,
ul#main_nav li a:active     { border-bottom: none; }

Would appreciate a second set of eyes to look this over and help me find the solution.

Thanks!

BTW: here is the link: http://www.rouviere.com/aav/index.html just click on any of the main navigation buttons.

解决方案

As Timhessel said, it's your focus outline... although this isn't recommended you could add this to get rid of it:

ul#main_nav li a { outline-color: transparent; }

这篇关于CSS - 不需要的边框底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆