更新时间:2023-11-01 10:40:46
在打开iframe时在父窗口中使用它:
use this on the parent window while opening iframe:
$(document).ready(function(){
$(".chpic").colorbox({width:"80%", height:"80%", iframe:true,
onClosed:function(){ location.reload(true); } });
});
这将关闭iframe页面中的iframe:
and this to close the iframe inside iframe page:
parent.$.fn.colorbox.close();