<!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=utf-8" />
<title>无标题文档</title>
<script src="jquery-1.11.0.min.js"></script>
</head>
<body>
<style>
.zhezhaobg { display:none; margin:-20px 0 0 -20px; width:100%; height:100%; position:fixed; top:0px; left:0px; z-index:99998; background:#333; opacity: 0.5; filter:alpha(opacity=50); }
.xuanfucon { display:none; margin:-150px 0 0 -280px; width:560px; height:300px; position:fixed; top:50%; left:50%; z-index:99999; background:#fff; }
.xf_close { margin:auto; width:auto; height:22px; line-height:22px; display:block; position:absolute; top:5px; right:10px; }
.xuanfu_con { text-align:center; padding:20px;}
</style>
<script type="text/javascript">
$(document).ready(function(){
$(".djchx").click(function(){
$(".zhezhaobg").show();
$(".xuanfucon").show();
});
$(".xf_close").click(function(){
$(".zhezhaobg").hide();
$(".xuanfucon").hide();
});
});
</script>
<div>
<a class="djchx" href="#" title="斯蒂芬斯蒂芬森">斯蒂芬斯蒂芬森</a>
</div>
<div class="zhezhaobg">
</div>
<div class="xuanfucon">
<a class="xf_close" href="#">关闭</a>
<div class="xuanfu_con">
这里是显示地方
</div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="jquery-1.11.0.min.js"></script>
</head>
<body>
<style>
.zhezhaobg { display:none; margin:-20px 0 0 -20px; width:100%; height:100%; position:fixed; top:0px; left:0px; z-index:99998; background:#333; opacity: 0.5; filter:alpha(opacity=50); }
.xuanfucon { display:none; margin:-150px 0 0 -280px; width:560px; height:300px; position:fixed; top:50%; left:50%; z-index:99999; background:#fff; }
.xf_close { margin:auto; width:auto; height:22px; line-height:22px; display:block; position:absolute; top:5px; right:10px; }
.xuanfu_con { text-align:center; padding:20px;}
</style>
<script type="text/javascript">
$(document).ready(function(){
$(".djchx").click(function(){
$(".zhezhaobg").show();
$(".xuanfucon").show();
});
$(".xf_close").click(function(){
$(".zhezhaobg").hide();
$(".xuanfucon").hide();
});
});
</script>
<div>
<a class="djchx" href="#" title="斯蒂芬斯蒂芬森">斯蒂芬斯蒂芬森</a>
</div>
<div class="zhezhaobg">
</div>
<div class="xuanfucon">
<a class="xf_close" href="#">关闭</a>
<div class="xuanfu_con">
这里是显示地方
</div>
</div>
</body>
</html>