gpt4 book ai didi

css - 带有 CSS 渐变的奇怪 Safari CSS 错误

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

bug

你好,

我已将 CSS 渐变添加到此按钮,但似乎出现了一条奇怪的线条。有什么办法可以解决这个问题吗?

CSS:

#view-content .billing-form #submit {
background: #94c723; /* Old browsers */
background: -moz-linear-gradient(top, #94c723 0%, #6cb119 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#94c723), color-stop(100%,#6cb119)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #94c723 0%,#6cb119 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #94c723 0%,#6cb119 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #94c723 0%,#6cb119 100%); /* IE10+ */
background: linear-gradient(to bottom, #94c723 0%,#6cb119 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#94c723', endColorstr='#6cb119',GradientType=0 ); /* IE6-9 */
border: none;
border-top: 1px solid #a1d61a;
-moz-border-radius: 3px;
-webkit-border-radius: 3px;
border-radius: 3px;
color: #FFFFFF;
font-size: 18px;
line-height: 40px;
padding: 0 70px;
font-weight: bold;
font-family: Arial, sans-serif;
}

最佳答案

只是一个想法,但为什么不在 pixlr 上叠加渐变呢?并将其设置为背景图像。然后你不再有这个问题,你节省了大约十行代码..

关于css - 带有 CSS 渐变的奇怪 Safari CSS 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16264983/

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