CSS 中 color 屬性的使用


color 屬性用來設定文字顏色。您可以嘗試執行以下程式碼來學習如何在 CSS 中使用 color 屬性

示例

<html>
   <head>
   </head>
   <body>
      <p style = "color:blue;">
         This text will be written in blue.
      </p>
   </body>
</html>

更新於: 31-01-2020

109 瀏覽量

開始你的 職業

透過完成課程獲得認證

開始
廣告
© . All rights reserved.