网页特效-窗口特效-弹出窗口后网页背景变暗的效果
2016-04-07 11:25
471 查看
<html> <head> <title>网页特效-窗口特效-弹出窗口后网页背景变暗的效果</title> <meta http-equiv="content-Type" content="text/html;charset=gb2312"> <!--把下面代码加到<head>与</head>之间--> <style type="text/css"> .black_overlay{display:none;position:absolute;top:0%;left:0%;width:100%;height:100%;background-color:black;z-index:1001;-moz-opacity:0.8;opacity:.80;filter:alpha(opacity=80);} .white_content{display:none;position:absolute;top:25%;left:25%;width:50%;height:50%;padding:16px;border:3px solid orange;background-color:white;z-index:1002;overflow:auto;} </style> </head> <body> <!--把下面代码加到<body>与</body>之间--> <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block'; document.getElementById('fade').style.display='block'"> 点击这里打开窗口</a> <div id="light" class="white_content"> <a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'"> 关闭</a> <br>窗口内容 </div> <div id="fade" class="black_overlay">123</div> </body> </html>
相关文章推荐
- 【未解决】php 中 '' "" null empty的区别
- html转pdf
- ubuntu14.04 不能关机,一直停在关机界面
- java实现多线程初探
- zz:Unable to open log device ‘/dev/log/main’: No such file or directory
- EditText动态添加图片-----SpannableString来设置超链接、颜色、字体、图片属性
- treeGrid使用参数
- CodeForces 616B Dinner with Emma【水】
- 某电商网站流量劫持案例分析与思考
- 【BZOJ 1232】 【Usaco 2008 Nov】安慰奶牛cheer
- 百度地图(BaiduMap)定位工具类封装和使用
- android TextView 分散对齐(两端对齐)
- C++第3次实验(个人所得税计算器)
- hadoop 集群安装及配置
- C#中调用Matlab人工神经网络算法实现手写数字识别
- Android顶栏定时推送消息
- 第三方开源库:imageLoader的使用
- S标签大全--转载自百度文库
- 【Android】自定义progressBar和动画显示对号
- Exchange 2010和Exchange 2016共存部署-7:激活Exchange 2016