添加遮罩层
来源:互联网 发布:mac解压不了zip 编辑:程序博客网 时间:2024/05/22 15:02
.shadeDiv{ display: none; position: absolute; top: 0%; left: 0%; width: 100%; height: 100%; background-color: black; -moz-opacity: 0.15; opacity:0.15; filter: alpha(opacity=15);}.showDiv { text-align: center; width: 420px; height: 420px; left:50%;/*FF IE7*/ top: 50%;/*FF IE7*/ margin-left:-210px!important;/*FF IE7 该值为本身宽的一半 */ margin-top:-210px!important;/*FF IE7 该值为本身高的一半*/ margin-top:0px; position:absolute;}
定义两个class,shadeDiv 为隐藏的,showDiv为显示的
<div id="shadeAddUserDiv" class="shadeDiv" style="z-index:106;"></div><div id="addUserDiv" class="tableInfo showProDiv" style="padding:0;background:#fff;z-index:107;display:none;">
只需在自己定义的div中加入class,并添加z-index:xxx就可以了,数字越大就在上面。
- 添加遮罩层
- 遮罩层添加
- 给页面添加遮罩层
- iOS添加遮罩层
- 导出excel添加遮罩层
- 添加
- 添加
- 添加
- 添加
- 添加
- 添加
- 添加
- 给div添加遮罩层,js给页面添加遮罩层
- 如果给页面添加遮罩层
- easyui为tab添加遮罩层
- js遮罩层,添加缓冲画面
- 网页提交时添加遮罩层
- easyui为页面加载添加遮罩层
- 用GridView读取XML文档中的数据
- Android 屏幕触摸监听小测试
- 【果断收藏】16个经典面试问题及回答思路
- 使用JMeter做性能测试的心得
- 让eclipse编辑器显示代码的行数
- 添加遮罩层
- ASCII Table
- 12.5 友元
- 整合Spring和Mybatis 中org.springframework.beans.factory.BeanCreationException错误
- 第14节 类和对象
- 用户方式中线程的同步
- 程序员到项目经理
- 使用PostThreadMessage在Win32线程间传递消息
- NEFU要崛起——第4场 A - Chat Server's Outgoing Traffic