我有一个弹出窗口,看起来完全符合我的要求,但标题和按钮出现在所有页面上。如果我删除ui-title
标题中的类,它将不再出现,但看起来不像我想要的那样。如果我删除ui-btn-inner
和ui-btn
类按钮将不再出现在所有页面中,但样式再次关闭。如何保持这种样式但没有按钮和标题出现在所有页面上?
这是弹出窗口:
<div data-role="popup" id="popupDialog" data-overlay-theme="a" data-theme="c" style="max-width:400px;" class="ui-corner-all">
<div data-role="header" data-theme="a" class="ui-corner-top ui-header ui-bar-a" role="banner">
<h1 class="ui-title" role="heading" aria-level="1">Create Location Page?</h1>
</div>
<div data-role="content" data-theme="d" class="ui-corner-bottom ui-content ui-body-d" role="main">
<h3 class="ui-title">You are about to create a new Location?</h3>
<p>This action cannot be undone.</p>
<a href="#" data-role="button" data-inline="true" data-rel="back" data-theme="c" data-corners="true" data-shadow="true" data-iconshadow="true" class="ui-btn ui-shadow ui-btn-corner-all ui-btn-inline ui-btn-up-c">
<span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-inner ui-btn-corner-all">Cancel</span></span>
</a>
<a href="#" data-role="button" data-inline="true" data-rel="back" data-transition="flow" data-theme="b" data-corners="true" data-shadow="true" data-wrapperels="span" class="ui-btn ui-shadow ui-btn-corner-all ui-btn-inline ui-btn-up-b">
<span class="ui-btn-inner ui-btn-corner-all"><span class="ui-btn-inner ui-btn-corner-all">Create</span></span>
</a>
</div>
</div>
调用此命令后会触发弹出窗口:
function PopupTest(){
$('#popupDialog').popup();
$('#popupDialog').popup("open");
}