jquerymobile 判断手机横竖屏 orientationchange
$( window ).bind("orientationchange", function( event ) { //ResizePageContentHeight($(".ui-page" )); if(event.orientation){ if(event.orientation == 'portrait'){ alert("portrait");//竖屏 } else if(event.orientation == 'landscape') { alert("landscape");//横评 } } }); 屏幕方向对应的window.orientation值: ipad: 90 或 -90 横屏 ipad: 0 或180 竖屏 Andriod:0 或180 横屏 Andriod: 90 或 -90 竖屏