gpt4 book ai didi

css - 如何在非webkit浏览器中使用 `-webkit-linear-gradient`

转载 作者:行者123 更新时间:2023-11-28 00:50:09 24 4
gpt4 key购买 nike

是否可以将以下内容推广到非 webkit 浏览器?下面的 css 给出了类似这样的东西,不幸的是它仅限于 webkit 浏览器:

enter image description here

background-image: -webkit-linear-gradient(left bottom, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-size: 30px 30px;

最佳答案

你可以试试这个

background-image: -webkit-linear-gradient(left bottom, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-image: -moz-linear-gradient(left bottom, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-image: -ms-linear-gradient(left bottom, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);
background-image: linear-gradient(left bottom, #ccc 0%, #ccc 25%, #bbb 25%, #bbb 50%, #ccc 50%, #ccc 75%, #bbb 75%);

关于css - 如何在非webkit浏览器中使用 `-webkit-linear-gradient`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53274020/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com