0
我有四個選項卡改變使用HTML和JavaScript
<div class="row">
<div class="col s2"></div>
<div class="col s10">
<ul class="tabs" style="background-image:url(images/wallpaper/water.jpg); border-radius:10px; ">
<li class="tab col s3"><a class="active" href="#test1" style="font-family:Trebuchet MS; font-size: 20px; ">Bienvenue</a></li>
<li class="tab col s3"><a href="#test2" style="font-family:Trebuchet MS; font-size: 20px; ">Gestion des categories</a></li>
<li class="tab col s3 "><a href="#test3" style="font-family:Trebuchet MS; font-size: 20px; ">Demandes d'ajoute</a></li>
<li class="tab col s3"><a href="#test4" style="font-family:Trebuchet MS; font-size: 20px; ">Plus</a></li>
</ul>
</div>
,這是該選項卡的內容這下面的代碼...
<div id="test1" class="col s12"><div class="image"></div></div>
<div id="test2" class="col s12">TAB2
<button> </button>
</div>
<div id="test3" class="col s12">TAB3</div>
<div id="test4" class="col s12">TAB4</div></div>
我想改變內容的標籤內容的TAB 2按下按鈕,我該怎麼辦?
給出更多信息,有什麼區別,爲什麼它的工作原理,更具信息性和解釋性。 – TommySM