简体   繁体   English

jQuery移动弹出维度

[英]jQuery mobile popup dimension

My jQuery mobile popup header doesn't have the same size as the content. 我的jQuery移动弹出标题与内容的大小不同。

在此处输入图片说明

jQuery 1.8.3 and jQuery mobile 1.2.0. 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>

For info, I open it with $('#commentPopup').popup("open"); 有关信息,我用$('#commentPopup').popup("open"); .

Is it possible to disable the scroll while the popup is opened? 打开弹出窗口时是否可以禁用滚动? Is it possible to prevent the user from closing the popup when clicking in another place of the page? 在页面的其他位置单击时,是否可以防止用户关闭弹出窗口?

Thanks 谢谢

I was overriding a CSS .ui-content class as @Omar found it. @Omar找到它时,我正在重写CSS .ui-content类。

The problem is solved. 问题已经解决了。

Concerning the dismissible, this is not possible with jQM version < 1.3.0. 关于免责条款,对于jQM版本<1.3.0,这是不可能的。

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

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