简体   繁体   English

如何使用jQuery标签插件实现这种标签布局?

[英]How to implement such tab layout with jquery tab plugin?

I'm using this plugin ,trying to implement this kind of layout: 我正在使用这个插件 ,试图实现这种布局:

<div id="aps">
    <ul>
        <li><a href="#tabs1-1">P1</a></li>
    </ul>
    <div id="tabs1-1">
        <iframe src="publish.php"></iframe>
    </div>
</div>

That is,for tabs to be added,I want the content to be: 也就是说,对于要添加的标签,我希望内容为:

<iframe src="publish.php"></iframe>

How to achieve this? 怎么做到这一点?

Instead of using an <iframe> you can load the page using AJAX: 您可以使用AJAX加载页面,而不是使用<iframe>

$('#tabs1-1').load('publish.php');

Simple as that. 就那么简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM