jQuery Tools Tabs v1.2让我陷入了一个问题。让我告诉你下面的问题。jQuery工具选项卡 - 命名的锚?
<ul class="tabs">
<li><a href="#anchor">This is an item</a></li>
<li><a href="#anchor">This is an item</a></li>
<li><a href="#anchor">This is an item</a></li>
</ul>
<h1><a name="anchor></a>This Is The Header Where The Anchor Resides</h1>
<div class="panes">
<div>Here's the first item's content</div>
<div>Here's the second item's content</div>
<div>Here's the third item's content</div>
</div>
我想要做的是当你点击每个项目,你会下降到新的内容,因此新的div出现。而不是只是点击一下,而不是让您的窗口位于新DIV的顶部。
问题?我有理由相信,jQuery Tools> Tabs Script会自动在插件的某个地方执行return false;
。这不允许我在链接属性中输入href="#anchor"
。它没有通过窗口/页面的位置显示,也没有显示在地址栏上。
我会直接进入jQuery Tools的论坛并提出问题,但他们的论坛/支持似乎已经破产......就像网站其余部分的一大部分,当然堆栈溢出最终会更好,过去对我的待遇更好。
您可以查看选项卡系统在这里: http://jquerytools.org/demos/tabs/index.html
您可以查看标签系统文档在这里: http://jquerytools.org/documentation/tabs/index.html
您可以查看选项卡系统的jQuery/JavaScript的位置: http://cdn.jquerytools.org/1.2.6/full/jquery.tools.min.js
感谢大家的帮助!
li has no attribute href – 2012-03-13 15:41:35
@EvilP:谢谢,我在将它们应用到StackOverFlow问题时忘了标记。固定! :) – 2012-03-13 15:44:02