我有一个带有style =“overflow:auto”的div,其中带有一些文本。该文本有一些锚点,我有div的链接(不在div内),每次点击进入锚点时,页面会到达底部,就像锚点位于页面底部一样。防止锚点将页面推到底部(HTML)
有什么办法可以防止这种情况发生?
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
Text Inside, Big text with
here
编辑:我也没有使用Javascript既不I帧
编辑:在Firefox 3测试
2009-02-20
LuRsT
+0
你是什么意思的“在页面的另一部分的链接”?它是一个iframe,一个命名的锚,或什么?你是通过JavaScript加载吗? –
2009-02-20 15:57:02
+0
而在哪些浏览器中你有这个问题? –
2009-02-20 16:01:51
+0
如果您发布链接的HTML和目标定位符的HTML,这将有所帮助。 –
2009-02-20 16:02:59