我有使用HTML和JQuery UI創建的選項卡。使用jquery ui更改標籤顏色?
PFB鏈接。
$(document).ready(function() {
//hiding tab content except first one
$(".tabContent").not(":first").hide();
// adding Active class to first selected tab and show
$("ul.tabs li:first").addClass("active").show();
// Click event on tab
$("ul.tabs li").click(function() {
// Removing class of Active tab
$("ul.tabs li.active").removeClass("active");
// Adding Active class to Clicked tab
$(this).addClass("active");
// hiding all the tab contents
$(".tabContent").hide();
// showing the clicked tab's content using fading effect
$($('a',this).attr("href")).fadeIn('slow');
return false;
});
});
是否有可能改變標籤的顏色?
你是什麼__color意思的標籤?__和是的,你可以 –
jogesh,我的意思是標籤的背景顏色.. – user755806
的其餘標籤或活動標籤? –