简体   繁体   English

将html页面刷新到页面顶部

[英]Refresh html page to the top of the page

Currently this is my problem. 目前这是我的问题。 I'm using jquery scrollTop for parallaxing, and if i restart the page it returns to the current page and some bugs occured because it is not refreshed from the top of the page. 我正在使用jquery scrollTop进行视差处理,如果我重新启动页面,它将返回到当前页面,并且由于未从页面顶部刷新而发生了一些错误。 Is there any way to do this? 有什么办法吗? I've already tried some of the examples like this . 我已经尝试了一些像例子这样 I hope you can help me. 我希望你能帮助我。 Thanks. 谢谢。

Without more information, i need to suppouse. 没有更多的信息,我需要支持。 Check if your URL have an anchor , the expected behavior it's scroll to the element informed in the URL, like this: http://yourdomain.com/#example . 检查您的URL是否具有anchor (滚动到URL中通知的元素的预期行为),例如:http: //yourdomain.com/#example Please put a reference to the code if it isn't the solution. 如果不是解决方案,请引用该代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM