IE6、IE7、FireFox 下测试有效。

 

源文件下载:https://files.cnblogs.com/yangxiaohu1/js-pop-div.rar

 

<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 ></div>
</body>
</html>

相关文章:

  • 2022-01-15
  • 2021-10-13
  • 2021-12-21
  • 2021-12-09
  • 2021-10-19
  • 2021-09-11
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2021-07-19
  • 2022-12-23
  • 2021-11-01
  • 2021-11-07
相关资源
相似解决方案