2016-08-05 53 views
0

如何在Internet Explorer 8中创建模糊窗口,其中灰显了整个屏幕并显示了Ajax微调器?在Internet Explorer 8中创建HTML模式窗口

<div style="display: none; position: fixed; z-index: 1000; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0,0,0, 0.4)"> 

继格正常工作优势,但并不变灰在IE8的屏幕,让我们的用户与页面交互。

如何让这个工作在IE中?

+0

http://stackoverflow.com/questions/3975688/css-background-opacity-with-rgba-not-working-in-ie-8 – 3rdthemagical

回答

0

IE 8不支持不透明度以同样的方式更新的浏览器这样做,但可以使用旧的Microsoft筛选器属性来完成此操作。

看看这对你的作品:

background-color: rgba(0,0,0); 
opacity: 0.4; /* Newer browsers */ 
filter: progid:DXImageTransform.Microsoft.Alpha(opacity=40); /* IE8 */ 
相关问题