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

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

WBOY
Release: 2016-06-21 09:01:51
Original
1005 people have browsed it

各位大神好,我的代码是这样的,我想要的是设置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;}
Copy after login

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

代码里不能加颜色

谢谢各位大侠。懂了。

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template