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">
相關文章
相關標籤/搜索