仅在 Jquery-mobile 中将页面上的方向修复为横向 [英] fix the orientation on page to landscape only in Jquery-mobile
问题描述
当我为我的 web 应用程序使用 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)不同,它不可能在 web 应用程序中锁定方向.有些浏览器在这方面对我们没有帮助.
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屋!