我有一个由bootstrap 3 构建的'index.html'和'country.html'
"country.html"如下:
<div class="tab-pane fade in" id="argentina"> ... </div>
<div class="tab-pane fade" id="france"> ... </div>
和像这样的"index.html":
<h2>Let's Go to Argentina<h2/>
<h2>Let's Go to France<h2/>
如何从"index.html"转到#france
或#argentina
选项卡?
<a href ="country.html#france"></a>
不工作:/
感谢的帮助
像这样使用
<div class="tab-content">
<div class="tab-pane fade in active" id="argentina">
ARGENTINA
</div>
<div class="tab-pane fade" id="france">
FRANCE
</div>
</div>
<a href="#argentina" data-toggle="tab">Argentina</a>
<a href="#france" data-toggle="tab">France</a>
工作小提琴http://jsfiddle.net/52VtD/8902/