可能我的CSS知识有限,但我不明白这一点:
<p style="color: green"> <p style="color: red">This is red</p> This should be green. But it's not. </p>
第二行将以黑色呈现,忽略"颜色:绿色".为什么?我在Chrome 28和Firefox 22中进行了测试.
html css
css ×1
html ×1