繁体   English   中英

当我打开 index.php 页面时,它打开显示底部

[英]When I open my index.php page, it opens showing the bottom

当我打开 index.php 页面时,它打开显示底部,我希望它在顶部正常打开。 我怎样才能做到这一点?

从表单输入字段中删除autofocus="on" ,当页面加载时我注意到的第一件事是输入具有光标焦点,并且由于它位于折叠下方,因此浏览器正在向下滚动。

 <!DOCTYPE html> <html> <body> <button type="button" onclick="alert('Hello world!')">Click Me!</button> </body> </html>

暂无
暂无

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

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