如何使用 CSS 設定文字顏色


如需設定文字顏色,請使用 color 屬性。

示例

您可以嘗試執行以下程式碼,瞭解如何使用 CSS 中的 color 屬性

<html>
   <head>
   </head>
   <body>
      <p style = "color:blue;">
         ANTARTICA is a continent
      </p>
   </body>
</html>

更新於: 30-1-2020

173 人次訪問

開始您的職業生涯

完成課程,獲得認證

開始學習
廣告
© . All rights reserved.