[removed].hash issue in IE7

后端 未结 4 1917
悲&欢浪女
悲&欢浪女 2020-12-19 09:18

We have a javascript function that should \"move\" a page to a certain position using anchors. This function just does window.location.href = \"#\" + hashName.

4条回答
  •  醉酒成梦
    2020-12-19 09:42

    IE and most other browsers will scroll to an anchor with anchor.focus(), or to any element with an id with element.scrollIntoView(true)

提交回复
热议问题