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">
 
 

猜你喜欢

转载自www.cnblogs.com/jason-beijing/p/10327891.html