我使用colorbox模式弹出和弹出窗口的内容来自一个URL,因为这是显示在一个iframe中我怎样才能添加一个关闭按钮模式弹出?colorbox关闭按钮与iframe
感谢
这是彩盒
<a class="Modal" href="http://google.com" onclick="openModal();">Click here</a>
代码和JS:
var openModal = function(){
$(".Modal").colorbox({
iframe:true,
opacity:0.5,
scrolling:true,
width:832,
height:456,
top:60
});
}
的可能重复[?如何iframe中关闭颜色框(http://stackoverflow.com/questions/2101011/how在iframe中的关闭颜色盒) –
我真的不知道如何显示和锚点链接,因为iframe是由colorbox生成的。 – Jay
显示一些代码请 –