1
如何打開加載了外部網站的jQuery colorbox。我曾嘗試過:在jQuery Colorbox中打開外部頁面
jQuery(document).ready(function(){
jQuery.colorbox({ href:"http://www.google.com", iframe: true });
});
但沒有成功。我無法從colorbox網站或SO上找到這方面的例子。
如何打開加載了外部網站的jQuery colorbox。我曾嘗試過:在jQuery Colorbox中打開外部頁面
jQuery(document).ready(function(){
jQuery.colorbox({ href:"http://www.google.com", iframe: true });
});
但沒有成功。我無法從colorbox網站或SO上找到這方面的例子。
是否希望在您的頁面加載時打開colorbox。
如果是你需要寫。
jQuery.fn.colorbox
而不是僅僅jQuery.colorbox.
也specifcy寬度和高度元素,爲您的顏色框iframe中。
http://colorpowered.com/colorbox/core/example1/index.html是具有其他內容類型部分的示例
我忘了指定的高度和寬度,然後它的工作。爲什麼我應該使用jQuery.fn.colorbox而不是jQuery.colorbox? – Dofs 2010-07-19 07:16:18
你不需要「.fn」字符串;彩盒開發商傑克摩爾已經仔細考慮了這一點。 iFramed內容始終需要高度和寬度。 – 2011-09-24 01:09:18