2016-07-06 51 views
0

我的項目是在這個地方鏈路設置:上引導選擇表格菜單需要回父鏈接

本地主機:12345/index.html的#/ BookCollection

在這個頁面中有3個從Bootstrap中選擇組件。最近,過去和即將

當我點擊任何我帶回那些標籤:

本地主機:12345/index.html的#/

而它應該是:

本地主機:12345/index.html的#/ BookCollection#最近

另外兩個標籤鏈接:

本地主機:12345/index.html的#/ BookCollection#過去

本地主機:12345/index.html的#/ BookCollection#即將到來的

請注意,我不允許改變下面這樣的鏈接結構:

本地主機:12345/index.html的#/ BookCollection

這是引導組件我使用:

<ul class="nav nav-tabs"> 
     <li class="active"><a data-toggle="tab" href="#Recent">Recent</a></li> 
     <li><a data-toggle="tab" href="#Past">Past</a></li> 
     <li><a data-toggle="tab" href="#UpComing">UpComing</a></li> 
</ul> 

<div class="tab-content"> 

<div id="Recent" class="tab-pane fade in active"> 
    <h3>Recent Books</h3> 
    <p>Some content.</p> 
</div> 

<div id="Past" class="tab-pane fade"> 
    <h3>Past Books</h3> 
    <p>Some content in Past Books.</p> 
</div> 

<div id="UpComing" class="tab-pane fade"> 
    <h3>UpComing books</h3> 
    <p>Some content in UpComing books.</p> 
</div> 

</div> 

我需要從引導的標籤組件協同工作。

我該如何解決?

回答

1

看來你的代碼片段工作得很好。也許你可以多解釋一下(因爲你的本地主機不可訪問,所以使用像bootply這樣的站點)。

看到你的代碼片段在這裏工作: http://www.bootply.com/Ny6q4guDgk

相關問題