css 文字阴影
更新时间:2024-04-22 08:25:35
编辑:保利尼奥
浏览:787
<div class="nybt">
<h3>客户案例<span>让中国企业都能通过互联网获取利润、成功转型</span></h3>
</div>
.nybt{position: absolute;top:...
<div class="nybt">
<h3>客户案例<span>让中国企业都能通过互联网获取利润、成功转型</span></h3>
</div>
<style>
.nybt {
position: absolute;
top: 60%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 999;
text-align: center;
width: 100%;
}
.nybt h3 {
color: #fff;
font-size: 2.1875vw;
letter-spacing: 5px;
text-shadow: 6px 1px 10px #000;
font-weight: bold;
}
.nybt h3 span {
font-size: 1.25vw;
color: #f25302;
text-transform: uppercase;
margin-top: 15px;
display: block;
letter-spacing: 0px;
font-weight: lighter;
}
</style>