非常不错的弹出一个div的js代码
来源:互联网 发布:汉字笔顺演示软件下载 编辑:程序博客网 时间:2024/05/17 22:12
<html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<style>
.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: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style>
</head>
<body>
<p>可以根据自己要求修改css样式<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">点击这里打开窗口</a></p>
<div id="light" class="white_content">
This is the lightbox content.
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
Close</a></div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
<head>
<title>LIGHTBOX EXAMPLE</title>
<style>
.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: 16px solid orange; background-color: white; z-index:1002; overflow: auto; } </style>
</head>
<body>
<p>可以根据自己要求修改css样式<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">点击这里打开窗口</a></p>
<div id="light" class="white_content">
This is the lightbox content.
<a href="javascript:void(0)" onclick="document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">
Close</a></div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
0 0
- 非常不错的弹出一个div的js代码
- 非常不错的一个JS分页效果代码,值得研究
- 非常不错js弹出层效果代码
- [转]非常不错的树形菜单div+css+js
- 转载一个不错的js弹出div效果http://www.jb51.net/article/14885.htm
- 非常不错的js脚本
- 非常不错的js脚本
- 非常不错的js脚本
- 非常不错的js脚本
- 非常不错的js脚本
- 非常不错的js脚本
- 非常不错的js脚本
- 非常不错的js脚本
- JS弹出居中的DIV的代码
- JS弹出居中的DIV的代码
- JS弹出居中的DIV的代码
- 一个非常不错的数据库连接
- 另外一个不错的弹出层的js效果
- Ubuntu 开机自动挂载NTFS分区
- Practice-1
- C++泛型算法
- Longest Substring Without Repeating Characters Leetcode
- HDU 3996 Gold Mine(最小割---最大权闭合)
- 非常不错的弹出一个div的js代码
- 服务器编程基础,Socket,IP等
- Linux 目录结构简介
- Linux进程间通信——使用信号量
- Unable to find the ncurses libraries or the required header files解决
- Java坦克大战 (四) 之子弹的产生
- 1-3 APP接口简介
- 这一年
- Java 并发编程(一)浅谈线程安全