我有一個div,點擊時,增加高度,反之亦然。裏面的div是一個RSS提要捕手。問題在於,當Div被擴展時,RSS Feed上的鏈接被點擊,Div簡單地崩潰而不是跟隨鏈接。我想鏈接在我的div與動畫切換高度可點擊
下面是代碼:
$(document).ready(function(){
$("#divright").toggle(function(){
$("#divright").animate({
height:640,
borderBottomWidth: "0px"},500);
},function(){
$("#divright").animate({
height:45,
borderBottomWidth: "1px"},500);
});
});
與線路(圖形設計新聞位)
http://flatpack.site90.com/About%20Flatpack.html
我怎麼能進行排序,以便我可以通過點擊RSS源鏈接,但也保留了以某種方式摺疊面板的能力。
謝謝:)
[event.stopPropagation()](http://api.jquery.com/event.stopPropagation/) – Ohgodwhy