Home  >  Article  >  Web Front-end  >  怎么设这个奇怪的CSS_html/css_WEB-ITnose

怎么设这个奇怪的CSS_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-21 09:01:51957browse

各位大神好,我的代码是这样的,我想要的是设置class="alt" 的都一样的颜色(如代码中的“姓名”和“班级”),但下面的代码,优于姓名下有超链接,好像就不行(颜色是COLOR: #666666;)。我怎么能够仅调整css,就能实现“姓名”和“班级”都是一样的color: #1B1B1B; 颜色呢?






    
 
 
姓名 年级 班级




谢谢各位大神。


回复讨论(解决方案)

table td.alt{color:red}
table td.alt a{color:red}

td.alt,td.alt a {   color: #1B1B1B; font-weight:bold;}

td.alt,td.alt a{   color: red; font-weight:bold;}

代码里不能加颜色

谢谢各位大侠。懂了。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn