跨浏览器的遮罩层透明度
css 样式:
- background-color: rgba(255, 255, 255, 0.5);
- filter: alpha(opacity = 30);
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
遮罩div的全部样式:
- #loadPanel {
- overflow-y: auto;
- overflow-x: auto;
- width: 100%;
- top: 97px;
- left: 0px;
- position: absolute;
- background-color: rgba(255, 255, 255, 0.5);
- filter: alpha(opacity = 30);
- /*opacity: .3;*/
- -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=30)";
- z-index: 99999;
- /*background-image: url("../images/loading.gif");*/
- background-repeat: no-repeat;
- background-position-x: center;
- -moz-background-position-x: center;
- -ms-background-position-x: center;
- background-position-y: center;
- -moz-background-position-y: center;
- -ms-background-position-y: center;
- background-attachment: fixed;/* 使背景图片相当于可视区域 */
- }