CSS 套用方法


  1. 內嵌(Internal)
    <head>
      <style>
        h1 {
          font-size: 18px;
          color: #990000;
        }
      </style>
    </head>
    
  2. 外部(External)
    HTML:
    <head>
      <link rel="stylesheet" href="css/f03.css">
    </head>
    
    CSS:
    h2 {
      font-size: 16px;
      color: #009900;
    }
    
  3. 行內(Inline)
    <body>
      <h3 style="font-size: 14px; color: #000099;">這是由 Inline CSS 控制</h3>
    </body>
    

    f03_css-basic.html

results matching ""

    No results matching ""