css---颜色过渡渐变

css---颜色过渡渐变,第1张

css---颜色过渡渐变

CSS---颜色过渡渐变

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
*{margin:0px; padding:0px;}
.box{margin:20px 0px 0px 20px;}
.box1{width: 50%; height:15px; background: linear-gradient(to right, #f5911e 40%, #d91f2b, #d91f2b);}
.box2{width: 50%; height:15px; background: linear-gradient(to right, orange, #d91f2b);}
/*background: -webkit-linear-gradient(red 5%, green 15%, blue 60%);*/
</style>
</head>
<body>
<div class="box box1"></div>
<div class="box box2"></div>
</body>
</html>

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/588164.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-12
下一篇 2022-04-12

发表评论

登录后才能评论

评论列表(0条)

保存