且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

jQuery,一页上有多个选项卡组

更新时间:2023-02-11 14:34:21

在您链接的博客条目的评论中,有关于此的讨论.他链接到此处的演示: http://www.sohtanaka.com/web-design/examples/tabs/index3.htm

In the comments on the blog entry you linked, there is a discussion about that. He links to a demo here: http://www.sohtanaka.com/web-design/examples/tabs/index3.htm

在该演示中,选项卡的访问方式发生了变化.

In that demo, there is a change in the way tabs are accessed.

$("div[class^='simpleTabs']").simpleTabs(); //Run function on any div with class name of "Simple Tabs"

这是通过将选项卡式部分包装在具有simpleTabs

This is done by wrapping your tabbed sections in a div with a class of simpleTabs