61,112
社区成员
发帖
与我相关
我的任务
分享
<html>
<head>
<title>demo</title>
<script type="text/javascript">
function test() {
document.getElementById('div1').focus();
//document.body.scrollLeft = 0;
//document.body.scrollTop = 0;
}
</script>
</head>
<body style='overflow:hidden' scroll='no'><!-- scroll='no' overflow:hidden onload="test()"-->
<div id="div0" style="width:1400px;height:700px;background:lightblue;position:absolute;" onclick='test()'>
IE下点我会跳转到下面
</div>
<div id="div1" style="top:1500px;width:1500px;height:300px;background:#DDDDDD;position:absolute; ">
</div>
</body>
</html>