1
我在我的網站上使用JQuery 1.4.2手風琴效果。除一個類別外,其他所有類別都已隱藏這適用於Chome和最近的Firefox,舊版本的Safari和所有Internet Explorer版本,但始於隱藏的一切。是否與這些瀏覽器不兼容或者我的代碼有問題?Jquery's:not(:first).hide()not in Internet Explorer
$(document).ready(function() {
$('div.chapter:not(:first)').hide();
$('h2.caption').click(function() {
$('div.chapter:visible').slideUp("slow");
$(this).next().slideDown("slow");
});
return false;
});
顯然,章節的內容都在div.chapter裏面。
Here is an example page with my code