设置表“register”red的tds内所有div的字体颜色的CSS语法是什么?
答案 0 :(得分:3)
CSS:
table.registration div {
color: red !important;
}
HTML:
<table class="registration">
<tr>
<td><div>This text will be red</div></td>
</tr>
</table>
答案 1 :(得分:2)
#registration td div { color:red; }
或
table.registration td div { color:red; }
答案 2 :(得分:1)
#registration td div { color:red }
答案 3 :(得分:1)
.registration td div {color:red /* #ff0000 */}