如何在花式盒子中打开Wordpress帖子?
我怎样才能在花式盒子里打开Wordpress帖子 例如: Lorem ipsum链接Lorem ipsum 当我点击链接-如何在fancybox或其他弹出窗口(如Litghbox等)中打开一些帖子时。您只需使用wordpress提供的thickbox js创建fancybox,如下所示:如何在花式盒子中打开Wordpress帖子?,wordpress,fancybox,Wordpress,Fancybox,我怎样才能在花式盒子里打开Wordpress帖子 例如: Lorem ipsum链接Lorem ipsum 当我点击链接-如何在fancybox或其他弹出窗口(如Litghbox等)中打开一些帖子时。您只需使用wordpress提供的thickbox js创建fancybox,如下所示: <?php add_thickbox(); ?> <div id="my-content-id" style="display:none;"> <p>
<?php add_thickbox(); ?>
<div id="my-content-id" style="display:none;">
<p>
This is my hidden content! It will appear in ThickBox when the link is clicked.
</p>
</div>
<a href="#TB_inline?width=600&height=550&inlineId=my-content-id" class="thickbox">View my inline content!</a>
有关更多详细信息,请查看此处:
编辑:
用于从其他源或站点加载内容
<?php add_thickbox(); ?>
<a href="http://example.com?TB_iframe=true&width=600&height=550" class="thickbox">View the WordPress Codex!</a>
是的,但它只显示div。。。我想在花式方框中显示其他帖子或其他网站的内容:所以,我们非常接近:但是。。。点击11 | 807,8中的地图-勾选框中的页面正在加载…按如下方式尝试hrefhttp://google.pl?TB_iframe=true&width=600&height=550 而不是简单的http://google.pldo 你还有其他选择吗