我正在嘗試使用semantic-ui來構建網站。我喜歡我所看到的很多東西。但是,我試圖創建一個選項卡控件。爲了做到這一點,我想我抓住了概覽頁面上找到的代碼。但是,由於我的jsfiddle shows,選項卡行爲無法正常工作。以下是我的標籤代碼示例:在semantic-ui中使用選項卡控件
<div class="row">
<div class="ui active tab segment" data-tab="first">First</div>
<div class="ui tab segment" data-tab="second">Second</div>
<div class="ui tab segment" data-tab="third">Third</div>
<div class="ui pointing secondary demo menu">
<a class="active red item" data-tab="first">One</a>
<a class="blue item" data-tab="second">Two</a>
<a class="green item" data-tab="third">Three</a>
</div>
</div>
我在做什麼錯?
Upvote for'{history:false}',這就是我所缺少的。 –
這種方法似乎沒有工作了。所有的解決方案都包含jQuery Adress.js,但它仍然不能解決porlbem問題。它雖然在他們的文檔頁面上工作。我不知道http://semantic-ui.com/modules/tab.html –