2012-09-09 112 views
0

我的漸變可在Firefox,Opera,Safari等中使用,但在IE上無法使用。漸變不適用於IE,但適用於其他地方

我的代碼是下面有人可以幫助我:

background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0, #b49931), color-stop(0.5, #5E5E5E), color-stop(0.51, #707070), color-stop(1, #838383)); 
background-image: -moz-linear-gradient(center bottom, #b49931 0%, #5E5E5E 50%, #707070 51%, #838383 100%); //FF 
background-image: -ms-linear-gradient(center bottom, #b49931 0%, #5E5E5E 50%, #707070 51%, #838383 100%); //IE 
background-image: -0-linear-gradient(center bottom, #b49931 0%,#5E5E5E 50%, #707070 51%, #838383 100%); //opera 
+3

到底哪個IE版本? – quantum

+1

對於Opera,它應該是'-o-linear-gradient'。它不叫'0pera'。 – Eric

+0

Internet Explorer每次都是一個問題。讓它去死...... – rekire

回答

2
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); 
+0

仍然不能正常工作 – Steph

+0

這是一個工作演示http://www.webdesignerwall.com/demo/gradient-box.html – MichaelT

+0

真棒作品。如何獲得4種顏色,如:背景圖像:-moz-linear-gradient(中心底部,#b49931 0%,#5E5E5E 50%,#707070 51%,#838383 100%); // FF – Steph

相關問題