在 CSS 中為文字設定陰影


使用 text-shadow 屬性可在文本週圍設定陰影。你可以嘗試執行以下程式碼,瞭解如何在 CSS 中為文本週圍設定陰影

示例

<html>
   <head>
   </head>
   <body>
      <p style = "text-shadow:3px 1px 4px green;">
         If your browser supports the CSS text-shadow property, this text will have a green shadow.
      </p>
   </body>
</html>

更新日期:2020-01-31

116 瀏覽量

開啟你的 職業生涯

透過完成該課程取得認證

開始
廣告
© . All rights reserved.