1. src="a.html#middle"  用锚点

解决方案 »

  1.   

    也可以用代码,为要显示的最上边一个元素定义个ID,然后用id.scrollIntoView scrollIntoView(true/false) 将对象滚动到可见范围内,将其排列到窗口顶部或底部。 
    true Default. Scrolls the object so that top of the object is visible at the top of the 
         window. 
    false Scrolls the object so that the bottom of the object is visible at the bottom of the 
          window.  
      

  2.   

    好像不行,src="a.html#middle 我试过了
    请问有什么办法 在线 谢谢