只有 li 元素中的 strong 元素的花样为斜体字,无需为 strong 元素界说额外的 class 或 id,代码更加轻便。
再看看上面的 CSS 划定:
strong { color: red; } h2 { color: red; } h2 strong { color: blue; }
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/shili/s53862.shtml
只有 li 元素中的 strong 元素的花样为斜体字,无需为 strong 元素界说额外的 class 或 id,代码更加轻便。
再看看上面的 CSS 划定:
strong { color: red; } h2 { color: red; } h2 strong { color: blue; }
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/shili/s53862.shtml