在 CSS 中,渐变(Gradient)可谓是最为强大的一个属性之一。 但是,经常有同学在使用渐变的过程中会遇到渐变图形产生的锯齿问题。 何为渐变锯齿? 那么,什么是渐变图形产生的锯齿呢? 简单的一个
顺晟科技
2022-09-13 14:32:03
166
Webkit内核浏览器(如webkit、Chrome等)
-webkit-gradient(linear,0% 0%, 0% 100%, from(#4998FF), to(#3B90FF), color-stop(0.5,#0A0FA6))
设计渐变效果工具地址:http://www.css88.com/tool/css3Preview/Linear-Gradients.html
<div id="demo" class="has-shadow" style="background-image: -webkit-gradient(linear,0% 0%, 0% 100%, from(#4998FF), to(#3B90FF), color-stop(0.5,#0A0FA6)); height: 100px; width: 80%; margin: 0 10%; border-radius: 15px;"> </div>
Firefox浏览器
-moz-linear-gradient(0% 100% 90deg, #4998ff, #0a0fa6, #3b90ff 100%)
设计渐变效果工具地址:http://www.css88.com/tool/css3Preview/Linear-Gradients-moz.html
<div style="background-image: -moz-linear-gradient(0% 100% 90deg, #4998FF,#0A0FA6, #3B90FF 100%); height: 100px; width: 80%; margin: 0 10%; border-radius: 15px;" class="has-shadow" id="demo"> </div>
09
2022-11
31
2022-10
31
2022-10
19
2022-10
15
2022-09
15
2022-09