修改js/dwz.ui.js中的

$('div.accordion', $p).each(function(){
var $this = $(this);
$this.accordion({fillSpace:$this.attr("fillSpace"),alwaysOpen:true,active:1});
});

 

如果要默认是收缩状态的话,将alwaysOpen改为false。

如果是最后一个展开的话,代码改为如下:

$('div.accordion', $p).each(function(){
var $this = $(this);
var ac_lenth = $this.find('div.accordionHeader').length;
ac_lenth = ac_lenth > 1 ? ac_lenth-1 : 1;
$this.accordion({fillSpace:$this.attr("fillSpace"),alwaysOpen:true,active:ac_lenth});
});

 

如果是指定的话,可以修改索引的。其中active中的索引是从0开始的。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-08-15
  • 2021-06-26
  • 2021-10-26
  • 2021-07-06
  • 2021-09-12
  • 2021-11-06
相关资源
相似解决方案