我不确定如何在这个位置放置弹出窗口。在文档示例中,它声明在弹出窗口的href中使用弹出div的id。
示例:
<a href="#popupPadded" data-rel="popup" data-role="button">Popup with padding</a>
<div data-role="popup" id="popupPadded" class="ui-content">
<p>This is a popup with the <code>ui-content</code> class added to the popup container.</p>
</div>
但我的部分视图正在其他地方使用href =“#”。如何在部分视图中定位弹出窗口并在其他页面上重复使用它们?
以下是我的部分视图的HTML:
<a href="#" data-icon="GhCsStatus-Red" data-position-to="origin" data-inline="true" data-mini="true" data-role="button" id="GhCsStatus_CS" style="pointer-events: none;">CS</a>
<a href="#" data-icon="GhCsStatus-Red" data-position-to="origin" data-inline="true" data-mini="true" data-role="button" id="GhCsStatus_GH" style="pointer-events: none;">GH</a>
<div id="GH_popup" data-role="popup">
<p> Get History is OFF! </p>
</div>
<div id="CS_popup" data-role="popup">
<p> Communication Service is OFF! </p>
</div>
<div id="GHCS_popup" data-role="popup">
<p> Get History and Communication Service are OFF! </p>
</div>