繁体   English   中英

jQuery移动弹出维度

[英]jQuery mobile popup dimension

我的jQuery移动弹出标题与内容的大小不同。

在此处输入图片说明

jQuery 1.8.3和jQuery mobile 1.2.0。

<div data-role="popup" id="commentPopup" style="width: 800px;" class="ui-corner-all">
    <div data-role="header" data-theme="b" class="ui-corner-top">
        <h1>Please enter your comment</h1>
    </div>
    <div data-role="content" data-theme="b" class="ui-corner-bottom ui-content">
        <textarea></textarea>
        <a href="#" data-role="button" data-inline="true" id="okComment" data-theme="a">OK</a>
        <a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="a">CANCEL</a>
    </div>
</div>

有关信息,我用$('#commentPopup').popup("open");

打开弹出窗口时是否可以禁用滚动? 在页面的其他位置单击时,是否可以防止用户关闭弹出窗口?

谢谢

@Omar找到它时,我正在重写CSS .ui-content类。

问题已经解决了。

关于免责条款,对于jQM版本<1.3.0,这是不可能的。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM