下列如何嵌套使用CSS選擇器的方法
<html>
<head>
<title>CSS選擇器的嵌套聲明</title>
<style type="text/css">
<!--
p b{ /* 嵌套聲明 */
color:maroon; /* 顏色 */
text-decoration:underline; /* 下劃線 */
}
-->
</style>
</head>
<body>
<p>嵌套使<b>用CSS</b>標(biāo)記的方法</p>
嵌套之外的<b>標(biāo)記</b>不生效</body>
</html>
掃一掃關(guān)注官方微信