点击⽂字或按钮弹出⼀个DIV窗⼝(DIV悬浮窗⼝)以下是弹出窗⼝代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta charset="utf-8">
<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 = "openDialog()">请点这⾥</a></p>
<div id="light" class="white_content">
<table>
<tr>
<td>fffff</td>
javascript void 0 是什么意思<td>dddddd</td>
</tr>
<tr>
<td>fffff</td>
<td>dddddd</td>
</tr>
<tr>
<td>fffff</td>
<td>dddddd</td>
</tr>
</table>
<a href = "javascript:void(0)" onclick = "closeDialog()">点这⾥关闭本窗⼝</a>
</div>
<div id="fade" class="black_overlay"></div>
</body>
<script type="text/javascript">
$(function(){
})
function openDialog(){
function closeDialog(){
</script>
</html>

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。