【发布时间】:2012-11-10 13:02:28
【问题描述】:
我需要在 iframe fancybox 窗口中设置或更新自定义 HTML 代码。 那我该怎么做?! “内容”选项不起作用! 在本地主机上测试。
$("test").fancybox({
'width' : 300,
'height' : 300,
'autoScale' : false,
'type' : 'iframe',
'content' : '<H5> It`s does not work</h5>'
});
如果无法更改跨域 iframe 的内容(如我的情况),那么,请告诉我如何在同一个域上进行。 例如,我们在 http://localhost/page1.html 和 iframe 链接到 http://localhost/page2.html
【问题讨论】:
标签: javascript jquery iframe fancybox frame