jQuery 1.9.1 UI bounceslide动画无法正常工作?

时间:2013-08-01 07:20:44

标签: jquery jquery-ui accordion effect

我已多次尝试在手风琴中保持弹跳效果,但我失败了。有人可以告诉我,我的问题是什么?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>accordion 2</title>

截至2013年8月1日,我从jquery网站上获取了以下脚本。

<link rel="stylesheet" href="css/jquery-ui.css" type="text/css" />
<link rel="stylesheet" href="css/jquery.ui.all.css" type="text/css" />
<script type="text/javascript" src="java/jquery-1.9.1.js"></script>
<script type="text/javascript" src="java/jquery.ui.core.js"></script>
<script type="text/jscript" src="java/jquery-ui.js"></script>
<script type="text/javascript" src="java/new/jquery.ui.widget.js"></script>
<script type="text/javascript" src="java/new/jquery.ui.accordion.js"></script>

<script type="text/javascript">
$(function() {
    $("#accordion").accordion({
        animated: "bounceslide"
    });
})
</script>
</head>
<body>
<div id="accordion">
<h3><a href="#">Accordion Header 1</a></h3>
<div>
    xxxxxxx
</div>
<h3><a href="#">Accordion Header 2</a></h3>
<div>
    lsadjf lksj dflj slkjf lksdf 
</div>
<h3><a href="#">Accordion Header 3</a></h3>
<div>
    lkjd flksj flkj lskdjf oeijro lv,mncvpef
</div>
</div>
</body>
</html>

1 个答案:

答案 0 :(得分:0)

问题似乎与你的javascript引用有关。它应该是

type="text/javascript" language="javascript"