选择器组合

 

 
 
<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title></title>

    <style>
        h1,h2,h3,p{
            font-family: "楷体";
            text-decoration: overline;
        }
        #id1,.one{
            color: red;
            font-weight: bold;
        }
        #id2{
            font-size: 23px;
            color: blue;
            font-weight: bold;
            font-style: italic;
            text-decoration: underline;
        }
    </style>
</head>
<body>

    <h1 id="id1">老大</h1>

    <h2>老二</h2>

    <h3 class="one">老三</h3>

    <p>老四</p>
    <p>老五</p>

    <div id="id2">老五告诉老四老三的老二老大了</div>
</body>
</html>

  

posted @ 2017-02-14 14:01  john。  阅读(143)  评论(0编辑  收藏  举报