Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望访问者只能在手机上以纵向视图查看网站,这样即使他们翻转手机,页面也不会翻转。
那可能吗 ?
下面的这篇文章似乎问了同样的事情,但他想要一个切换它的选项,但我没有。仅纵向视图
如何在 HTML5 的移动浏览器上将浏览器视图限制为横向?
抱歉不行。页面的翻转是本机处理的,不能被覆盖。根据您的目标设备,研究如何响应window.orientation.
window.orientation