在Jquery Mobile或PhoneGap中禁用自动旋转

虽然移动设备的跨平台开发是如此的好.禁止自动旋转或锁定到一个方向(即纵向或横向)不是一个简单的选项.

有没有在Jquery Mobile,PhoneGap,XUI在任何地方?

如果是的话请帮忙.它驱动我坚果

解决方法

要完成上面的答案.

在iPhone上添加到-info.plist:

<dict>
`.....
    <array>
        <string>UIInterfaceOrientationPortrait</string>
        <string>UIInterfaceOrientationPortraitUpsideDown</string>
    </array>
..........
</dict>

在Android到AndroidManifest.xml

<activity   ........      android:screenorientation="portrait">

相关文章

页面搜索关键词突出 // 页面搜索关键词突出 $(function () {...
jQuery实时显示日期、时间 html: &lt;span id=&quot...
jQuery 添加水印 &lt;script src=&quot;../../../.....
中文:Sys.WebForms.PageRequestManagerParserErrorExceptio...
1. 用Response.Write方法 代码如下: Response.Write(&q...
Jquery实现按钮点击遮罩加载,处理完后恢复 思路: 1.点击按...