锁定页面

来源:百度知道 编辑:UC知道 时间:2024/05/29 15:56:55
我在页面弹出一个div时
我想把旁边的滚动条锁定 不让他滚动
希望贴出代码

代码如下:

<html>
<head>
<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8〃 />
<title>不随滚动条滚动</title>
</head>

<body>
<div style=”position:fixed !important; margin-top:30px; left:10px; position:absolute; z-index:100; top:expression(offsetParent.scrollTop);”>不能滚动</div>
<div style=”height:999px;”></div>
</body>
</html>