ht ML 5禁止横屏的方法:首先打开相应的HTML5代码文件;然后在head区域中添加“< ;m eta n am e="screen- orientation " content="portr ai t">”即可禁止 HTML5页面 横屏。
本文操作环境:windows7系统、HTML5 && CSS3版、Dell G3 电 脑。
禁止手机端html5页面横屏
禁止手机端html5页面横屏,uc浏览器和 QQ 浏览器禁止横屏代码如下,meta标签添加到head区域 <meta name="screen-orientation" content="portra IT ">
uc浏览器强制竖屏
<meta name="screen-orientation" content="portrait">
QQ浏览器强制竖屏
<meta name="x5-orientation" content="portrait">
UC浏览器强制全屏
<meta name="full -s creen" content="yes">
QQ浏览器强制全屏
<meta name="x5-fullscreen" content="true">
UC浏览器应用模式
<meta name=" br owsermode" content="application">
QQ浏览器应用模式
<meta name="x5-page-mode" content="app">
windows phone 点击无高光
<meta name="msapplication -t ap-highlight" content="no">
【推荐学习: HTML5视频 教程】
以上就是html5怎么禁止横屏的详细内容,更多请关注其它相关 文章 !
总结
以上是 为你收集整理的 html5怎么禁止横屏 全部内容,希望文章能够帮你解决 html5怎么禁止横屏 所遇到的问题。
如果觉得 网站内容还不错, 推荐好友。
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did204453