2016-08-05 54 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 */ 
相關問題