使用 CSS 設定字型的簡寫屬性


font 屬性用作簡寫來指定其他字型屬性(例如字體系列、尺寸、樣式等)的數量。

示例

可嘗試執行以下程式碼,瞭解如何使用 font 屬性

<html>
   <head>
   </head>
   <body>
      <p style = "font:italic small-caps bold 13px georgia;">
         Applying all the properties on the text at once.
      </p>
   </body>
</html>

更新於:2020 年 1 月 30 日

173 次瀏覽

開啟您的職業生涯

完成課程獲得認證

立即開始
廣告
© . All rights reserved.