我有多個具有漸變背景,並且適用於Firefox,Chrome和Safari,以及移動設備的某些媒體查詢。IE10的背景圖像和漸變
像往常一樣,問題是Internet Explorer。我曾經有一個IE的條件樣式表,我只是加載了一個單一的背景圖像,但據我所知,IE10不會支持<! - 如果IE - >在我的CSS中。
理想情況下,我想獲得css3漸變和獨立的背景圖像,適用於所有瀏覽器,我很樂意爲所有IE瀏覽器使用單一背景圖像,但迄今爲止單一背景圖像不適用於IE。
CSS中主要的style.css
body{
font:14px 'questrialregular', Arial, Helvetica, sans-serif;
margin:0;
width:100%;
color:#797979;
background-image:
url(../img/bknd_img1.png),
url(../img/bknd_img2.png),
url(../img/bknd_img3.png),
url(../img/bknd_img4.png),
url(../img/bknd_img5), -webkit-gradient(radial, 50% 20%, 0, center center, 500, from(#c0deff), to(#509deb));
background-image:
url(../img/bknd_img1.png),
url(../img/bknd_img2.png),
url(../img/bknd_img3.png),
url(../img/bknd_img4.png),
url(../img/bknd_img5.png), -moz-radial-gradient(center center, circle contain, #c0deff, #509deb);
background-attachment:fixed;
background-position:top right, top left, center bottom, bottom right, left bottom;
background-repeat: no-repeat, no-repeat, no-repeat, no-repeat, no-repeat;
background-color:#509deb;
display:block;}
CSS的Internet Explorer:風格ie.css
font:14px 'questrialregular', Arial, Helvetica, sans-serif;
margin:0;
width:100%;
color:#797979;
background-image: url('img/bknd_full_img.jpg');
background-attachment:fixed;
background-position:center top;
background-repeat: no-repeat;
background-color:#fff;
display:block;
}