实现css文字渐变
2020-05-26 本文已影响0人
PharkiLL
image.png
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<style>
span {
background: linear-gradient(to right, red, blue);
-webkit-background-clip: text;
color: transparent;
}
</style>
</head>
<body>
<span>字体渐变颜色</span>
</body>
</html>
---转自 萤火虫de梦