我的代码中有几个<a>
标签。
但是,用户点击<a>
标签后,浏览器会跳转到页面的顶部。
例如:
texts
…..
elements
…...
texts
…..
elements
…...
texts
…..
elements
…...
//the user has to scroll down to here to see the <a> tag.
//once click, the page will jump to the top (scroll to top) for some reason.
<a href = '#' >click here</a>
我知道我可能没有提供足够的信息,但我想知道是否有人能想到这个奇怪事情的原因。我没有创建原始代码,文件中有很多代码..非常感谢您的帮助!