<分区>
<分区>
我在处理一些 CSS 代码时遇到了一些问题。我试图让特定类别的链接为红色,而其余链接为蓝色。这是我的代码:
a
{
text-decoration: none;
color : blue;
cursor: pointer;
}
a.headerLink
{
text-decoration: none;
color: "#983030";
font-weight: bold;
padding-right: 20px;
}
a.headerLink 应该对它有更多的选择性,所以颜色属性会覆盖它,但事实并非如此。更重要的是,它只发生在颜色上。 padding 和 font weight 属性是正确的,但出于某种原因,颜色没有被覆盖。有人知道为什么吗?
最佳答案
关于html - CSS 选择性问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23375480/