我可以修复 jQueryMobile 对话框的宽度和高度吗? [英] Can I fix the width and the height of jQueryMobile dialog?

查看:15
本文介绍了我可以修复 jQueryMobile 对话框的宽度和高度吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以固定 jQueryMobile 对话框的宽度和高度吗?目前,宽度的大小是 100%,这在 iPad 中真的很糟糕.

解决方案

可以设置对话框的页面宽度,实例:http://jsfiddle.net/bXPTd/3/

<a href="#foo" data-role="button" data-inline="true" data-rel="dialog" data-transition="pop">打开对话框</a>

<div data-role="page" id="foo" style="width:300px;">你好富<a href="#" data-role="button" data-rel="back">关闭对话框</a>

Can I fix the width and the height of jQueryMobile dialog? Currently, the size of width is 100% which is really awful in iPad.

解决方案

You can set the page width of the dialog, Live example: http://jsfiddle.net/bXPTd/3/

<div data-role="page" id="bar">
   <a href="#foo" data-role="button" data-inline="true" data-rel="dialog" data-transition="pop">Open dialog</a>  

</div>

<div data-role="page" id="foo" style="width:300px;">
    Hello Foo
    <a href="#" data-role="button" data-rel="back">Close dialog</a>
</div>

这篇关于我可以修复 jQueryMobile 对话框的宽度和高度吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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