CSS 中 color 屬性的使用


color 屬性用於設定文字的顏色。你可以嘗試執行以下程式碼,以瞭解如何在 CSS 中使用 color 屬性

示例

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

更新於:31-Jan-2020

109 次瀏覽

開啟你的 職業生涯

完成課程,取得認證

開始
廣告
© . All rights reserved.