0

我想表明我的背景爲梯度,但它不能正常工作,這裏是我的代碼梯度不在我的工作 - 電子7,8

.content1 { 
    font-size: 16px; 
    font-weight: lighter; 
    line-height: 1.1em; 
    margin-top: -30px; 
    background:filter: progid:DXImageTransform.Microsoft.dropshadow(OffX=0px, OffY=0px, Color=#666666); 
    -ms-filter: "progid:DXImageTransform.Microsoft.dropshadow(OffX=0px, OffY=0px, Color=#666666)"; 
    background: -webkit-gradient(center,0 0,41,0 0,0, from(#D06494), to(#401246)); 
    background:-webkit-radial-gradient(0% 0%, ellipse cover, #D06494 0%, #401246 41%); 
    background:-moz-radial-gradient(0% 0%, ellipse cover, #D06494 0%, #401246 41%); 
    background:-o-radial-gradient(0% 0%, ellipse cover, #D06494 0%, #401246 41%); 
    background: -ms-radial-gradient(0% 0%, ellipse cover, #D06494 0%, #401246 41%); radial-gradient(ellipse at 0% 0%, #D06494 0%, #401246 41%); 
    overflow: hidden; 
    padding: 25px 40px 50px; 
} 

請幫我,怎麼辦?

+0

我會離開IE <9個用戶無需梯度...如果它的佈局結構的強制部分,你可以始終使用背景圖像。 – Teemu

回答

0

IE6-9使用過濾沒有-ms過濾器:

.content1 { 
    /* IE7, IE8, IE9 */ 
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#D06494', endColorstr='#401246',GradientType=0); 
}