我想在弹出窗口中加载html页面。我做了一些谷歌,发现jquery colorbox。他们给出的例子使用anchor tag
,但我想加载弹出按钮点击。jquery colorbox加载页面弹出按钮点击
实例给出了颜色框
<a class='iframe' href="http://wikipedia.com">Outside Webpage (Iframe)</a>
$(document).ready(function(){
$(".iframe").colorbox({iframe:true, width:"80%", height:"80%"});
});
在颜色框它们加载外部页面上链接的点击弹出窗口的上面的例子,但我想这样做,就按一下按钮。
jQuery.fn.colorbox({iframe:tru e,宽度:“80%”,身高:“80%”})为我工作 –