我發現很多關於IE9不渲染背景圖像的問題,但找不到適合我需求的解決方案。IE9不渲染背景圖像
我爲我的背景使用了一個CSS3漸變發生器,對於除IE9以外的所有現代瀏覽器都適用。
使用的代碼IM是:
body {
background-size: cover;
background-repeat: no-repeat;
background-image: linear-gradient(bottom, rgb(184,190,227) 49%, rgb(118,135,250) 80%);
background-image: -o-linear-gradient(bottom, rgb(184,190,227) 49%, rgb(118,135,250) 80%);
background-image: -moz-linear-gradient(bottom, rgb(184,190,227) 49%, rgb(118,135,250) 80%);
background-image: -webkit-linear-gradient(bottom, rgb(184,190,227) 49%, rgb(118,135,250) 80%);
background-image: -ms-linear-gradient(bottom, rgb(184,190,227) 49%, rgb(118,135,250) 80%);
background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0.49, rgb(184,190,227)),color-stop(0.8, rgb(118,135,250)));
}
伊夫設置好的一個的jsfiddle頁:http://jsfiddle.net/nUA98/
所以,如果有人知道它爲什麼不是在IE9工作,評論/答覆將不勝感激。
謝謝。
caniuse.com是一個非常有用的資源:CSS漸變(http://caniuse.com/#feat=css-gradients) – Stefan
@Stefan看起來像完整的資源,把它放在我的最愛中,太棒了! –