今天要实现一个文字的阴影效果,大概是这个样子的
代码如下:
<!DOCTYPE HTML>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>css文字阴影效果</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
div{
background: #0066CC;
height: 400px;
padding-top: 40px;
}
p {
width: 280px;
height: 66px;
font-size: 70px;
font-family: Adobe Heiti Std;
font-weight: normal;
color: #FFFFFF;
line-height: 45px;
text-shadow: 0px 8px 0px rgba(24, 24, 24, 0.26);
}
</style>
</head>
<body>
<div>
<p>新闻资讯</p>
</div>
</body>
</html>
123456789101112131415161718192021222324252627282930313233
效果如下:
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
本文系转载,前往查看
如有侵权,请联系 cloudcommunity@tencent.com 删除。
扫码关注腾讯云开发者
领取腾讯云代金券
Copyright © 2013 - 2025 Tencent Cloud. All Rights Reserved. 腾讯云 版权所有
深圳市腾讯计算机系统有限公司 ICP备案/许可证号:粤B2-20090059 深公网安备号 44030502008569
腾讯云计算(北京)有限责任公司 京ICP证150476号 | 京ICP备11018762号 | 京公网安备号11010802020287
Copyright © 2013 - 2025 Tencent Cloud.
All Rights Reserved. 腾讯云 版权所有