html5游戏的横屏问题

html5 API有这个参数 Screen Orientation API

可以看w3c定义的规范 The Screen Orientation API

<!-- 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">
 
 
posted @ 2019-01-27 20:40  jason_xiao  阅读(374)  评论(0编辑  收藏  举报