是否可以防止“翻转"?通过JavaScript/jQuery在iPhone网站中? [英] Is it possible to prevent the "flipping" in an iPhone website via JavaScript/jQuery?

查看:115
本文介绍了是否可以防止“翻转"?通过JavaScript/jQuery在iPhone网站中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只是不想在iPhone更改方向时网站更改方向.

I just don't want the site change orientation when iPhone change orientation.

有可能吗?

推荐答案

有关如何在方向更改时使用CSS/JS旋转呈现的显示,请参见此答案.这个想法是捕获定向事件,然后将显示强制返回到纵向/横向.

See this answer for how to use CSS/JS to rotate the rendered display on orientation change. The idea is to capture the orientation event, and then force the display back to portrait/landscape.

如何在iPhone Web应用程序中如何将方向锁定为纵向模式?

这篇关于是否可以防止“翻转"?通过JavaScript/jQuery在iPhone网站中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆