如何将CSS样式应用于表头中显示的链接?
我想将CSS样式应用于出现在我的网页中列标题中的链接。我已将以下内容添加到CSS中:如何将CSS样式应用于表头中显示的链接?
thead tr td a { color: White; }
但是,我的链接仍然是标准的蓝色(后面是紫色)颜色。
列标题中的链接是一个嵌入td
标记中的锚定标记,该标记嵌入tr
标记中,该标记嵌入thead
标记中,对吗?
为什么我的CSS不能产生想要的结果?
更新:
有趣的是,这也不起作用:页面上的所有链接仍然是蓝色和紫色。
a { color: white; }
a:hover { color: white; }
a:visited { color: white; }
a:active { color: white; }
使用
thead tr td a { color: white; }
thead tr td a:hover { color: white; }
thead tr td a:visited { color: white; }
thead tr td a:active { color: white; }
看到这个现场example
要删除下划线包括text-decoration: none;
第一标签
如果仍然不能正常工作每一个使用之后尝试!important
仍然蓝色和紫色 – 2012-04-10 21:23:00
这应该工作。你确定你的CSS正确地连接到你的html页面吗? – MarioDS 2012-04-10 21:24:00
我的所有CSS工作正常,直到我试图使列标题中的链接变成白色。 – 2012-04-10 21:26:18
你能提供吗HTML标记 - 理想的是它的一个jsfiddle? – mikevoermans 2012-04-10 21:22:06
@mikevoermans同意,这个问题是无法通过HTML无法解析的。 – iambriansreed 2012-04-10 21:25:09
我们需要查看页面,因为这不是正常的浏览器行为 – jacktheripper 2012-04-10 21:29:21