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-09-08
-
突刺刺是什么梗?揭秘网络热词背后的搞笑来源和用法,看完秒懂! 2025-09-08
-
突发脑梗是什么梗?揭秘网络热词背后的真相与急救知识! 2025-09-08
-
突破你心中的梗是什么梗?揭秘网络热梗背后真相,快速get流行文化! 2025-09-08
-
突然爆红的梗是什么梗 揭秘全网刷屏神梗背后的魔性真相 2025-09-08
-
突然爆笑的梗是什么梗?揭秘全网最火笑点,看完秒懂笑到停不下来! 2025-09-08