我使用materializecss。我有兩個問題。
第一:如何用「活動」類標記標籤(就像點擊了一樣)?如果我打開標籤頁(下一個「活動」標籤頁後面),我沒有看到該標籤頁(包裹在其中)在這一刻打開。 (我使用兩行製表符) 第二:如何標記製表符的文本(好像是徘徊在兩行中) 非常感謝您的幫助。Materialisecss選項卡
0
A
回答
0
請有文檔一看: http://materializecss.com/tabs.html
可以使用回調函數昂秀 因此,當一個選項卡顯示你可以做任何你想要的^^
您的製表觸發(也許您的一個標籤)自動獲得的「活動」類,激活
0
時生成使用兌現CSS,你可以這樣做&窩旅遊標籤:
<ul id="tabs-swipe-demo" class="tabs">
<li class="tab col s3"><a href="#test-swipe-1">Test 1</a></li>
<li class="tab col s3"><a class="active" href="#test-swipe-2">Test 2</a></li>
<li class="tab col s3"><a href="#test-swipe-3">Test 3</a></li>
</ul>
<div id="test-swipe-1" class="col s12 blue">
Test 1 <!-- whatever inside first tab -->
<!-- you can nest another set of tab inside like so : -->
<ul id="tabs-swipe-demo" class="tabs">
<li class="tab col s3"><a href="#test-swipe-4">Test 4</a></li>
<li class="tab col s3"><a class="active" href="#test-swipe-5">Test 5</a></li>
<li class="tab col s3"><a href="#test-swipe-6">Test 6</a></li>
</ul>
<div id="test-swipe-4" class="col s12 blue">
Test 4 <!-- whatever inside first tab -->
</div>
<div id="test-swipe-5" class="col s12 red">
Test 5 <!-- whatever inside secont tab -->
</div>
<div id="test-swipe-6" class="col s12 green">
Test 6 <!-- whatever inside third tab -->
</div>
</div>
<div id="test-swipe-2" class="col s12 red">
Test 2 <!-- whatever inside secont tab -->
</div>
<div id="test-swipe-3" class="col s12 green">
Test 3 <!-- whatever inside third tab -->
</div>
改變標籤的字體顏色和背景顏色上懸停或活動狀態,你可以把你的CSS:
<style>
/*when hover*/
.tabs .tab a:hover{
background-color:/* put some background color*/;
color:/* put some font color*/;
}
/*when active*/
.tabs .tab a.active{
background-color:/* put some background color*/;
color:/* put some font color*/;
}
</style>
相關問題
- 1. Materialisecss卡發行
- 2. MaterialiseCSS卡片設計
- 3. Android - 導航選項卡 - 刷卡選項卡(固定選項卡)
- 4. MaterialiseCSS多選不工作
- 5. Android:選項卡內的選項卡
- 6. jquery-ui選項卡 - 添加選項卡
- 7. Jquery選項卡啓用選項卡?
- 8. 選項卡中的嵌套選項卡
- 9. jQuery UI選項卡:多組選項卡
- 10. 合併選項卡中的選項卡
- 11. jqyery選項卡默認選項卡
- 12. jQuery UI選項卡 - 鏈接選項卡
- 13. jQuery選項卡 - 獲取選定選項卡的選項卡模板
- 14. jQueryUI選項卡:選擇選項卡時清除其他選項卡的div
- 15. Angular-Bootstrap UI選項卡:刪除選項卡選項
- 16. 使用Jquery-ui選項卡,使用Parent選項卡集和子選項卡集,如何鏈接選項卡'cousins'?
- 17. iOS選項卡
- 18. 如何清除舊選項卡並在選項卡上添加新選項卡
- 19. Bootstrap 2.1 javascript嵌套選項卡:內部選項卡關閉外部選項卡
- 20. 表單提交後,Jquery選項卡更新選項卡在同一選項卡
- 21. 在Access 2007中的選項卡外部選項卡上的選項卡
- 22. WPF - 選項卡控件中的兩行選項卡 - 選項卡包裝
- 23. Jquery選項卡選中沒有選項卡被選中
- 24. 與Materialisecss春天MVC複選框
- 25. LWUIT:選項卡 - 如何標記當前選定的選項卡
- 26. 如何在選擇其他選項卡時激活選項卡?
- 27. 更改選項卡選擇選項卡時的文本顏色
- 28. JavaFx:選項卡上的事件篩選器(選項卡窗格)
- 29. 在選項卡控制器中選擇了兩個選項卡
- 30. jQuery UI選項卡 - 選項卡組合並選擇轉到URL