林有一些麻煩,在IE8 jQuery的的slideToggle功能由於某種原因,它的開放其打開IE8滑動切換問題
繼承人的代碼中使用
$("h3 a").click(function(){
id = $(this).attr("href");
$(id).slideToggle("slow");
});
和HTML IM後立即關閉DIV
<h3><a href="#promo-materials">Graphic and Pormotional Materials</a></h3>
<div id="promo-materials" class="center gallery">
<a href="images/portfolio/bistro.png" rel="facebox">
<img src="images/portfolio/thumbs/bistro.png" alt="" />
</a>
<a href="images/portfolio/direct-savings.png" rel="facebox">
<img src="images/portfolio/thumbs/direct-savings.png" alt="" />
</a>
</div>
這是在所有其他的瀏覽器功能頁面的鏈接它的工作原理,包括IE7
我忘了將它張貼:
我現在有它引發的兼容性模式,因爲我不得不今天的工作。
這聽起來像你的事件處理程序被綁定兩次,這可能是這種情況的原因? – 2010-04-22 21:46:32