7

漏洞

你好,

我已向此按钮添加了 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;
}
4

2 回答 2

1

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

于 2013-06-19T17:27:17.973 回答
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;
}
于 2013-05-02T20:29:17.417 回答