在 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.