gpt4 book ai didi

css - Chrome 线性渐变错误

转载 作者:技术小花猫 更新时间:2023-10-29 11:12:11 25 4
gpt4 key购买 nike

我有一个像这样的重复线性渐变:

.placeholder { 
background: repeating-linear-gradient(to top right, #7722AA 0px, #7722AA 6%, #CC44EE 6%, #CC44EE 13%) transparent;
border: 1px solid #000000;
float: left;
height: 110px;
width: 120px;
}

但是在 chrome、Mac 上的 firefox 和 opera 中,外观是倾斜的:enter image description here

它在正方形中工作正常,但当它变成矩形时,它会变得参差不齐——在所有其他浏览器中不会出现同样的情况。

这是什么原因造成的?

jsfiddle

最佳答案

也许你想要:

.placeholder { 
background: repeating-linear-gradient(45deg, #7722AA 0px, #7722AA 6%, #CC44EE 6%, #CC44EE 13%) transparent;
border: 1px solid #000000;
float: left;
height: 110px;
width: 120px;
}

?

关于css - Chrome 线性渐变错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16694669/

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