css疑难杂症

css疑难杂症

2024-05-26
暂无分类

height auto 过渡效果

把height改成max-height,width同理

.accordion-body {
  max-height: 0;
  transition: 500ms max-height ease;
}

.accordion:hover .accordion-body {
  max-height: 200px;
}
THE END
0/500
暂无评论