2
我剛開始學習jQuery,所以我是初學者。jquery選項卡導航菜單
我的目標是創建一個標籤導航菜單。我在這裏做了這段代碼:
$(".tab_content").hide();
$(".tab_content:first").show();
$("ul.tabs li").click(function() {
$(".tab_content").hide();
var h_active = $(this).attr("rel");
$("#"+h_active).fadeIn(500);
$("ul.tabs li").removeClass("active");
$(this).addClass("active");
$(".v_tabs").removeClass("v_active");
$(".v_tabs[rel^='"+h_active+"']").addClass("v_active");
});
但是在互聯網上閱讀,我意識到它並不是最好的。
Here是查看整個代碼的例子:
我怎樣才能添加淡出過渡?