将页面方向固定为仅在Jquery-mobile中横向显示 [英] fix the orientation on page to landscape only in Jquery-mobile

查看:102
本文介绍了将页面方向固定为仅在Jquery-mobile中横向显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

仅当我为Webapp使用jquery mobile时,页面的方向如何才能横向显示?

How can the orientation of a page be landscape only as i am using jquery mobile for my webapp?

页面包含一些表格数据,在移动版本中无法以纵向模式显示...

The page contains some tabular data which can't be shown in the portrait mode in the mobile version...

看看我的布局.. http://jsfiddle.net/nY5ZF/1/

这可以解决吗?

推荐答案

我们现在在jquerymobile 1.3.1中具有响应表,您可以使用它...

We now have responsive tables in jquerymobile 1.3.1, you could use that...

http://jquerymobile.com/demos/1.3.0 -beta.1/docs/tables/

与混合应用程序(phonegap)不同,无法在网络应用程序中锁定方向.某些浏览器在此方面无济于事.

As its not possible to lock the orientation in webapps unlike hybrid apps (phonegap). Some browsers just do not help us in that.

接下来,您可以以列表格式显示此数据,或者仅检查模式,如果为纵向,则给出简单消息要查看表格,请使用横向".

Next you could display this data in list format OR just check the mode, if portrait then give a simple message "To view table please use landscape".

这篇关于将页面方向固定为仅在Jquery-mobile中横向显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆