我有了一些動畫中有一個DIV,當我在jQuery的UI添加,動畫不會觸發事件。如果我註釋掉啓用jQuery-UI的行,一切正常(當然除了ui函數)。以下是我遇到問題的代碼片段。jQuery的UI打破動畫
<script type="text/javascript">
$(document).ready(function() {
$("#content").children().hide();
$("#Home").show();
$("#pagenav ul li").click(function() {
$("nav ul li").removeClass("selected");
$(this).addClass("selected");
$("#content").children().hide();
$("#" + $(this).data("name")).show();
});
$("#myImageBox ul li").hide(function() {
$("#myImageBox ul li").each(function(index) {
$(this).delay(1000*index).fadeIn(500);
});
});
$("#accordion").accordion({ header: "h3" });
});
</script>
任何想法爲什麼這會導致問題?感謝您的任何建議。
編輯:這裏是我使用調用腳本/ CSS等
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.20.custom.min.js"></script>
<link rel="stylesheet" type="text/css" href="layout.css">
<link rel="stylesheet" type="text/css" href="css/south-street/jquery-ui-1.8.20.custom.css">
代碼的第一部分是由工作方式,它隱藏了需要隱藏的部分,但它沒有運行動畫。它還將手風琴元素添加到指定的元素。 – FireCrakcer37