<h2>
<span class="red">
text here is red
<span class="blue">text is blue here </span>
text here is red again
</span>
</h2>
这也就是说,样式的选取 ,只按照离相关文字最近的东西来处理。
博客提到样式的选取规则,即只按照离相关文字最近的东西来处理,还给出了示例,如在 HTML 中,文字样式按最近的类来确定。
<h2>
<span class="red">
text here is red
<span class="blue">text is blue here </span>
text here is red again
</span>
</h2>
这也就是说,样式的选取 ,只按照离相关文字最近的东西来处理。

被折叠的 条评论
为什么被折叠?