DIV实现完美模式窗口
来源:互联网 发布:苹果7手机怎么备份数据 编辑:程序博客网 时间:2024/05/16 05:25
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</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.3;
opacity:.30;
filter: alpha(opacity=30);
}
.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>单击 <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</a></p>
<div id="light" class="white_content">模式窗口内容
<a href = "javascript:void(0)"
onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a>
<h3>www.66css.com</h3>
</div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</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.3;
opacity:.30;
filter: alpha(opacity=30);
}
.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>单击 <a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">here</a></p>
<div id="light" class="white_content">模式窗口内容
<a href = "javascript:void(0)"
onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Close</a>
<h3>www.66css.com</h3>
</div>
<div id="fade" class="black_overlay">
</div>
</body>
</html>
- DIV实现完美模式窗口
- div层,实现模式窗口/模态窗口/模式对话框
- div+css+javascript 实现模式化窗口
- 父窗口与模式子窗口间传值,div遮罩层实现
- 用“window.showModalDialog()”实现DIV模式弹出窗口
- 用"window.showModalDialog()"实现DIV模式弹出窗口
- 用"window.showModalDialog()"实现DIV模式弹出窗口
- 用"window.showModalDialog()"实现DIV模式弹出窗口
- DIV实现弹出窗口
- 用Javascript实现完美关闭窗口
- 纯GDI完美实现半透明不规则窗口
- C++完美实现Singleton模式
- C++完美实现Singleton模式
- C++完美实现Singleton模式
- C++完美实现Singleton模式
- C++完美实现Singleton模式
- C++完美实现Singleton模式
- C++完美实现Singleton模式
- 【转】JSP/Servlet 获取真实IP地址
- php代码可移植性-符号
- 改善C#程序的建议8:避免锁定不恰当的同步对象
- Operation not allowed after ResultSet closed 错误的解决方案
- 改善C#程序的建议9:使用Task代替ThreadPool和Thread
- DIV实现完美模式窗口
- 改善C#程序的建议10:用Parallel简化Task
- 安全随笔1:谨慎一次MD5值的可被穷举性
- 字符串编辑距离算法
- Prism安装、MVVM基础概念及一个简单的样例
- MAC地址获取
- MVVM中的命令绑定及命令参数
- 避免zombie的方法
- 使用CSS3制作漂亮的按钮