使用 CSS 建立紅色霓虹燈輝光陰影


為了建立紅色霓虹燈輝光投影,使用 text-shadow 屬性。你可以嘗試執行以下程式碼來實現此效果

示例

線上演示

<!DOCTYPE html>
<html>
   <head>
      <style>
         h1 {
            text-shadow: 0 0 4px #FF0000;
         }
      </style>
   </head>
   <body>
      <h1>Heading One</h1>
      <p>Above heading has a read neon glow shadow effect.</p>
   </body>
</html>

更新於: 2020 年 6 月 24 日

403 次瀏覽

啟動你的 事業

完成課程並獲得認證

立即開始
廣告