[英]Links css underline
I have the following style for my footers in my css file: 在我的css文件中,我的页脚有以下样式:
#footer {
text-align: center;
font-size: .7em;
color:#000000;
}
This is the html for the footer part: 这是页脚部分的html:
<div id="footer">
<br> //google ad
<br>
<br>
<A HREF="http://www.site1.com">Blog</A> <A
HREF="http://site1/rss.xml">RSS</A> <A
HREF="http://www.mexautos.com">Autos Usados</A> <A
HREF="http://www.site2">Videos Chistosos</A> <A
HREF="http:/s.blogspot.com">Fotos de Chavas</A><br>
Derechos Reservados © 2008-<?=date('Y')?> address<br>
</div>
But for some reason some of the links show underlined. 但出于某种原因,一些链接显示有下划线。
Any ideas how I can make it so the links do not appear underlined? 任何想法我怎么能这样做链接不会出现下划线?
Thx 谢谢
you can try 你可以试试
#footer a { text-decoration: none }
that means all <a> tags within the element with id footer will have no underline. 这意味着具有id footer的元素中的所有<a>标签都没有下划线。
try: 尝试:
#footer a{
text-decoration: none;
}
Apply the following style: 应用以下样式:
a, a:link, a:visited, a:hover
{
text-decoration: none;
}
I've intentionally given you complete coverage of all the states that an <a>
tag can have, but you very well may be able to get away with the following as well: 我有意向你全面介绍了<a>
标签可以拥有的所有状态,但你也可以完成以下任务:
a
{
text-decoration: none;
}
Finally, if you only want this applied to the footer: 最后,如果您只想将此应用于页脚:
#footer a, #footer a:link, #footer a:visited, #footer a:hover
{
text-decoration: none;
}
不是你的问题的直接答案,但我强烈建议在Firefox中安装Firebug,因为它允许你看到应用了什么类,它是什么顺序 - 基本上帮助你调试你的CSS。
将以下行添加到样式表:
a {text-decoration:none;}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.