2015-03-25 76 views
1

我正在使用visual studio 2008構建一個web application.css版本是2.1並且Internet Explorer版本是ie9.with css 2.1版本opacity屬性不存在所以我使用-ms-filter使我的代碼在ie9中工作。我的代碼是使用-ms篩選器與iinternet資源管理器9

.wait 
{ 
    position: absolute; 
    height: 100%; 
    width: 100%; 
    display: none; 
    z-index: 0; 
    background-color: #E1FFFF; 
    text-align: center; 
    cursor:wait; 
    opacity:0.5; 
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; 
} 

但它不工作.pls幫助我。

回答

0

試試這個。

如果你想的不透明度在所有IE版本的工作,順序應該是:

-ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; // first! 
filter: alpha(opacity=50);     // second! 

Reffer Notes

+0

謝謝you.that工作。 – shreesha 2015-03-25 14:57:41

+0

@shreesha如果我的回答很有幫助,請投票。謝謝 – 2015-12-27 17:25:50

相關問題