Heim  >  Artikel  >  Web-Frontend  >  怎么设这个奇怪的CSS_html/css_WEB-ITnose

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

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

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

代码里不能加颜色

谢谢各位大侠。懂了。

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn