由于某种原因,我的渐变在 Safari 中不起作用。它适用于所有其他浏览器,包括 IE,但不适用于 safari。有谁知道这个问题的解决方案?
谢谢
#menuwrapper {
width: 100%;
height: 50px;
margin: 0;
clear: both;
background: #2c3a54;
background: -moz-linear-gradient(left, #1f2b42 2%, #2a3c5d 29%, #2a3c5d 70%, #1f2b42 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, right top, color-stop(2%,#1f2b42), color-stop(29%,#2a3c5d), color-stop(70%,#2a3c5d), color-stop(100%,#1f2b42)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(left, #1f2b42 2%,#2a3c5d 29%,#2a3c5d 70%,#1f2b42 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(left, #1f2b42 2%,#2a3c5d 29%,#2a3c5d 70%,#1f2b42 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(left, #1f2b42 2%,#2a3c5d 29%,#2a3c5d 70%,#1f2b42 100%); /* IE10+ */
background: linear-gradient(to right, #1f2b42 2%,#2a3c5d 29%,#2a3c5d 70%,#1f2b42 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#1f2b42', endColorstr='#2a3c5d',GradientType=1 ); /* IE6-8 */
}