网页排版高手进

来源:百度知道 编辑:UC知道 时间:2024/05/28 13:23:38
以游客方式浏览网站,在做出越权操作时让其登陆,弹出一个覆盖整个浏览器的透明div(绝对定位),然后计算出浏览器宽和高,作为做登陆界面的div的距左、上的距离定位.这时按住ctrl拖动鼠标滑轮,使网页排版整体缩小,这时玻璃失效,原本在玻璃下的内容裸露出来了,请高手看看有好的解决办法没?

用lightbox即可:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>纯CSS Lightbox效果</title>
<style>
.black_overlay{
display: none;
position: absolute;
top: 0%;
left: 0%;
width: 100%;
height: 100%;
background-color:#EEEEEE;
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;