close

<!doctype html>
<html>
<head>
    <title>Interal CSS - Class &amp; ID</title>
    <meta charset="utf-8" />
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <style type="text/css">
         /*p{
             color: green;
         }*/
         .large {
             font-size: 200%;
         }
         #blue {
             color: blue;
         }
         .underline {
             text-decoration: underline;
         }
         .bold {
             font-weight: b
         }
    </style> 
</head>

<body>
<div>
    <p class="large">This is some text.</p>
    
    <p id="blue" class="large">This is some more text.</p>

    <p>The third <span class="underline large bold">word</span> in this paragraph</p>
    <!-- <span>範圍 -->
    <!-- id属性的值是唯一的,而class属性值可以重复。 -->
</div>
</body>
</html>
 

 

Interal CSS - Class %26;ID.jpg

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 A&B 的頭像
    A&B

    網頁前端新手上路辛酸史

    A&B 發表在 痞客邦 留言(0) 人氣()