08id选择器.html

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
    <style type="text/css">
       /* id一般只允许使用一次*/
        #big {
            color: red;
        }
        .tou {
            color: skyblue;
        }
    </style>
</head>
<body>
    <div id="big">熊大</div>
    <div>熊二</div>
    <div class="tou">光头强</div>
</body>
</html>

 

 

posted on 2019-06-16 18:37  HiJackykun  阅读(75)  评论(0编辑  收藏  举报