点击文字弹出一个DIV层窗口代码
来源:互联网 发布:flv.js ios 编辑:程序博客网 时间:2024/06/06 03:16
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>点击文字弹出一个DIV层窗口代码</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=88);
}
.white_content {
display: none;
position: absolute;
top: 25%;
left: 25%;
width: 55%;
height: 55%;
padding: 20px;
border: 10px 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'">请点这里</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'">点这里关闭本窗口</a></div>
<div id="fade" class="black_overlay"></div>
</body>
</html>
<html>
<head>
<title>点击文字弹出一个DIV层窗口代码</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=88);
}
.white_content {
display: none;
position: absolute;
top: 25%;
left: 25%;
width: 55%;
height: 55%;
padding: 20px;
border: 10px 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'">请点这里</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'">点这里关闭本窗口</a></div>
<div id="fade" class="black_overlay"></div>
</body>
</html>
0 0
- 点击文字弹出一个DIV层窗口代码
- 点击文字弹出一个DIV层窗口代码
- 点击文字弹出一个DIV层窗口代码
- 点击文字弹出一个DIV层窗口代码
- 点击文字弹出一个DIV层窗口代码
- js Ajax点击链接弹出一个DIV层窗口
- 点击文字或按钮弹出一个DIV窗口(DIV悬浮窗口)
- JavaScript弹出窗口DIV层效果代码
- JavaScript弹出窗口DIV层效果代码 [
- JAVASCRIPT弹出窗口DIV层效果代码
- 点击 div 弹出层
- 弹出div层窗口
- 点击文字弹出图片层
- DIV弹出层代码
- 点击弹出一个层
- jsp 页面点击事件后弹出DIV层代码
- jsp 页面点击事件后弹出DIV层代码
- 点击表格中的某个列,弹出一个div层
- Linux中执行shell脚本的4种方法
- switch 与 if else
- 解决java构造路径不存在
- ajax返回值data乱码
- 【面试题】二叉树
- 点击文字弹出一个DIV层窗口代码
- (1)JavaScript中的数据类型
- 【bzoj2038】 [2009国家集训队]小Z的袜子(hose)
- Ajax学习初体验
- fastcgi_finish_request
- 使用Redis存储Nginx+Tomcat负载均衡集群的Session
- 贪心算法-最大不相交区间数问题
- 快速排序
- ajax中什么时候进success和error