オリジナル:https://blog.csdn.net/wangshu696/article/details/43196349
<META NAME = "画面の向き" コンテンツ= "ポートレート"> <! - Ucを強制肖像画 - >
<META NAME = "X5-オリエンテーション" コンテンツ= "ポートレート"> <! - QQ強制肖像画 - >
コード:
window.addEventListener(ウィンドウ内の"onorientationchange" "orientationchange":? "サイズを変更する"、hengshuping、偽);
関数hengshuping(){
IF(window.orientationは== 90 || window.orientation == -90){
//横屏
}他{
//竖屏
}
}