采药超人
首先你应该知道怎么定位到一个页面中间位置 通常的做法是在页面中间位置设置一个“锚点”,比如添加这样的HTML代码:<a name="center">这里是Center部分</a> 然后需要调到锚点,比如你的网页地址是:localhost/index.html,那么你只需要写“localhost/index.html#center”即可转到页面中间-------------------------------------------------------------------------------------------------------------------如果跳转前不知道页面中间部分的位置(即你不知道#center),那么你可以在跳转后,在目标页面使用JS滚动页面到50%,即“window.scrollTo(0,window.screen.height/2)”以上、是chrome下的,其他浏览器方法一样