jquery mobile1.2 我使用以下代码用iframe弹出,但点击外页,popupdiv无法关闭(不点击顶部的关闭按钮)
为什么?
HTML:
<a href="javascript:popup()" data-role="button">pop</a>
<div data-role="popup" id="popDiv" class="ui-content">
<a href="#" data-rel="back" data-role="button" data-theme="a" data-icon="delete"
data-iconpos="notext" class="ui-btn-right">Close</a>
<iframe id="dynaitcFrame" seamless></iframe>
</div>
JS:
function popup(){
$("#dynaitcFrame").attr("src","aaa.html");
$("#dynaitcFrame").attr("height","500");
$("#dynaitcFrame").attr("width","500");
$("#popDiv").popup("open",{transition:'pop',positionTo:'#popPosition'});
}