施加影响的 HTML
2019年11月30日
作者:佚名
上面的 CSS 划定规矩:
strong { color: red; } h2 { color: red; } h2 strong { color: blue; }
下面是它施加影响的 HTML:
<p>The strongly emphasized word in this paragraph is<strong>red</strong>.</p> <h2>This subhead is also red.</h2> <h2>The strongly emphasized word in this subhead is<strong>blue</strong>.</h2>