2015-03-25 21 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

相关问题