多页表单未加载到屏幕顶部
我为一个网站创建了一个多页注册表。由于页面长度差异,当用户单击每个页面时,他们在步骤之间按比例出现在同一页面中。这可能导致用户必须向上滚动才能看到表单步骤。我希望这是有道理的,但我的主要问题是如何更改脚本,以便它在每个时间间隔重新加载到页面顶部?
以下是下一页导航的当前代码:
<button style='float:right;' class='next-tab mover' type='submit' rel='\" + next + \"'>Next</button>\
这是取自 php 脚本的代码。我尝试过一些明显的测试,例如使用#top,但我无法让它工作。有什么想法吗?
I have created a multi-page registration form for a website. Due to the page length differences when a user clicks through each page they wind up proportionally in the same page between the steps. This can leave the user having to scroll up to see the form steps. I hope that made sense, but my main question is how do I change the script so that it will reload to the top of the page at every interval?
Here is the current bit of code for the next page navigation:
<button style='float:right;' class='next-tab mover' type='submit' rel='\" + next + \"'>Next</button>\
This was taken from a php script. I have tried some obvious tests like using #top, but I could not get it to work. Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
向第一个 div 添加宽度和高度很有帮助。我还将第二个 div 设为第一个 div 的绝对值:
Added width and height to the first div helped out. i also made the second div absolute to the first div: