阅读背景:

如何将高度设置为自动?

来源:互联网 

jQuery

$(".facts").click(function(e) {
  if($(this).height() >50) {
    $(this).animate({height:50+'px'});
    $(this).find('.servicedrop').toggleClass('fa-caret-up fa-caret-down');
    $(this).removeClass("facts_active");
  }else{
    if ( $(".facts_active").length) {
      $(".facts_active").animate({height:50+'px'});
    }
    $(this).animate({height:350 + 'px'});
    $(this).find('.servicedrop').toggleClass('fa-caret-down fa-caret-up');
    $(this).addClass("facts_active");
  }
});
$(".facts").click(function(e) {
  if($



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: