CSS链接颜色不工作 [英] CSS link color not working

查看:116
本文介绍了CSS链接颜色不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改我的一个标签按钮的链接颜色,但它不工作。它的奇怪,因为所有其他属性下相同的花括号正在工作很好,但属性 clor:#FFFAFA 不工作。我已经设置它对一个#778899 背景,使前者的雪白的颜色是可见的。

a:link
{
color:#FFFAFA;
text-decoration:none;
background-color:#778899
}



<$ p

code>< dl class =profileTab>

< dd class =profileTabContents>< a href =edit.php>个人信息< / a>< / dd>

< dd class =profileTabContents>< a href =education.php>教育,活动< / a>< / dd>

< dd class =profileTabContents>< a href =sports.php> Sports&田径< / a>< / dd>

< dd class =profileTabContents>< a href =entertainment.php>娱乐&景点< / a>< / dd>

< dd class =profileTabContents>< a href =philoSociety.php>哲学&社会< / a>< / dd>

< / dl>


解决方案

这应该是工作,但它可能被覆盖通过您的浏览器。设为:

  a,a:link,a:visited 
{
color:#FFFAFA;
text-decoration:none;
background-color:#778899
}


I am trying to change the link color of one of my tab buttons but its not working. Its strange because all the other attributes under the same curly braces are working just fine but the attribute clor:#FFFAFA is not working. I have set it against a #778899 background so that the former's snow-white color is visible.

Here's the code.

a:link
{
 color:#FFFAFA;
 text-decoration:none;
 background-color:#778899   
}

it is always purple and never changes

Here is the code where I implement it

 <dl class="profileTab">

  <dd class="profileTabContents"><a href="edit.php">Personal Infomration</a></dd>

  <dd class="profileTabContents"><a href="education.php">Education, Employment & Activities</a></dd>

  <dd class="profileTabContents"><a href="sports.php">Sports & Athletics</a></dd>

  <dd class="profileTabContents"><a href="entertainment.php">Entertainment & Attractions</a></dd>

  <dd class="profileTabContents"><a href="philoSociety.php">Philosophy & Society</a></dd>

</dl>

解决方案

Well this should be working, but it is probably overwritten by your browser. Make it:

a,a:link,a:visited
{
 color:#FFFAFA;
 text-decoration:none;
 background-color:#778899   
}

这篇关于CSS链接颜色不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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