显示效果
html
<div class="text-gradient">
若你喜欢怪人,其实我很美!
</div>
css
.text-gradient {
display: inline-block;
font-size: 50px;
background-image: -webkit-gradient(linear, 0 0, 0 bottom, from(#ffc800), to(red));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
网友评论