如何在 Internet Explorer 8 中创建使整个屏幕变灰并显示 ajax 微调器的模态窗口?
<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)">
跟随 div 在 Edge 中运行良好,但不会使 IE8 中的屏幕变灰,让用户与页面交互。
如何让它在 IE 中工作?
最佳答案
rgba 和背景颜色在 IE 8 中似乎不起作用 caniuse_rgba caniuse_background-color
你可以使用带回退的背景
background: #EEE /* The Fallback */
background: rgba(0,0,0, 0.4)
关于javascript - 在 Internet Explorer 8 中创建 HTML 模态窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38785442/