jquerymobile 判断手机横竖屏 orientationchange
来源:互联网 发布:涤纶网络丝有什么特点 编辑:程序博客网 时间:2024/04/30 03:47
$( 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 竖屏
- jquerymobile 判断手机横竖屏 orientationchange
- 判断手机横竖屏
- js手机横竖屏判断
- js 判断手机横竖屏
- js判断手机横竖屏
- js手机横竖屏判断
- 判断手机横竖屏提示
- 简短的js判断手机横竖屏
- 移动端判断手机横竖屏状态
- 移动端判断手机横竖屏状态
- cocos2d-JS 判断手机横竖屏
- 移动端判断手机横竖屏状态
- 判断手机横竖屏的条件
- 使用JavaScript判断手机的横竖屏
- jQueryMobile的(二十一) 方向改变事件(orientationchange)
- 禁止手机横竖屏
- 检测手机横竖屏
- 判断手机横竖方向,加载友好提示
- RSS
- hibernate中取得session的两种方式
- request.setAttribute()和request.getSession().setAttribute()的区别
- 精辟的 Json 解读,牛人啊
- 使用JavaScript构建JSON格式字符串
- jquerymobile 判断手机横竖屏 orientationchange
- 【黑马程序员】集合框架(一) 第十五天
- 开发完成后总结心得(团队会议稿)
- 一些开发高深的名词 希望大家来盖楼
- C++中的大数运算
- 03.22简论止损与否
- 九度 1011 最大连续子序列
- ubuntu下auto-complete和auto-complete-clang出错的问题
- Sol's Graphics for Beginners(2)