<body onload="with(document.body){scrollTop=(scrollHeight-clientHeight)/2}">
<div style="height: 2000"></div>

解决方案 »

  1.   

    <div tabIndex="1" style="position:absolute;left:300;top:300"></div>
    只要加了tabIndex这个标签就可以用focus了
      

  2.   

    <body onload="location.href='#mm'">
      <div style="height: 2000; background-color: red">高度未知</div>
      <a name=mm></a>
      目标 用锚点做
      

  3.   

    加标签或书签
    <a name="1">
      

  4.   

    给要定位的地方加个标志如DV
    <div id="dv">&nbsp;</div>
    <script>
    var o=document.body.createTextRange();
    o.moveToElementText(dv);
    o.scrollIntoView();
    </script>