例子 2 - 受室全体 <p> 元素中的第一个 <i> 元素
鄙人面的例子中,决议器受室悉数 <p> 元素中的第一个 <i> 元素:
<html>
<head>
<style type="text/css">
p > i:first-child {
font-weight:bold;
}
</style>
</head>
<body>
<p>some <i>text</i>. some <i>text</i>.</p>
<p>some <i>text</i>. some <i>text</i>.</p>
</body>
</html>
如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r52609.shtml








