您好,
我在这个按钮上添加了一个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;
}
答案 0 :(得分:1)
只是一个想法,但为什么不在pixlr上进行渐变叠加,只需将其设置为背景图像。然后你不再有这个问题,你节省了大约十行代码..
答案 1 :(得分:0)
试试这个:
#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;
display: block;
outline: none;
}