父页面:
<div id="win2" style=" width:300px; height:200px; border:1px solid red;">
<iframe style="height:182px; width:300px;" src="1.html"></iframe>
</div> js: function closeIframe(){
$("#win2").hide();//关闭div
}
iframe弹出页面(1.html):
<a class="close" onclick="closeParent()">关系iframe外层的div</a> js: function closeParent(){
window.parent.closeIframe();
}