html5怎么禁止横屏
时间:2021-04-13 来源:互联网
今天PHP爱好者给大家带来html5禁止横屏的方法:首先打开相应的HTML5代码文件;然后在head区域中添加“<meta name="screen-orientation" content="portrait">”即可禁止html5页面横屏。希望对大家有所帮助。
本文操作环境:windows7系统、HTML5&&CSS3版、Dell G3电脑。
禁止手机端html5页面横屏
禁止手机端html5页面横屏,uc浏览器和qq浏览器禁止横屏代码如下,meta标签添加到head区域<meta name="screen-orientation" content="portrait">
uc浏览器强制竖屏
<meta name="screen-orientation" content="portrait">
QQ浏览器强制竖屏
<meta name="x5-orientation" content="portrait">
UC浏览器强制全屏
<meta name="full-screen" content="yes">
QQ浏览器强制全屏
<meta name="x5-fullscreen" content="true">
UC浏览器应用模式
<meta name="browsermode" content="application">
QQ浏览器应用模式
<meta name="x5-page-mode" content="app">
windows phone 点击无高光
<meta name="msapplication-tap-highlight" content="no">
以上就是html5怎么禁止横屏的详细内容,更多请关注php爱好者其它相关文章!
-
-
打游戏输了,我竟然开始安慰对手 2025-06-06
-
币安怎么购买Kujira(KUJI)币?KUJI币购买教程与币安binance下载入口 2025-06-06
-
币安怎么购买Kava(KAVA)币?KAVA币购买教程与币安binance下载入口 2025-06-06
-
朋友请我吃饭,AA之后我请他绝交 2025-06-06
-