小编Mac*_*arl的帖子

jQuery Accordion not working to set height to content

我试图根据我在stackoverflow中研究的内容来修改手风琴,并且高度仍然没有改变 - 它仍然是最高面板的高度.有人可以告诉我我做错了什么或丢失了吗?这是我在HEAD中输入的内容 -

<link rel="stylesheet"   href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css" />
<script>
$(function() {
$( "#accordion" ).accordion({
  collapsible: true
});
</script>
<script>
$(".selector").accordion({ autoHeight: false }); 
</script>
Run Code Online (Sandbox Code Playgroud)

谢谢.

html css jquery user-interface accordion

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

accordion ×1

css ×1

html ×1

jquery ×1

user-interface ×1