Twitter Bootstrap 100% height accordion “jump”

后端 未结 4 1029
北荒
北荒 2021-02-14 01:18

I\'m trying to implement a 100% height accordion using the Twitter Bootstrap collapse component, exactly as described in this question.

I\'m manually setting the heights

4条回答
  •  抹茶落季
    2021-02-14 01:40

    Late to the party, but:

    I had a similar problem, and noticed that if I removed a margin-top from the element below the collapsing one, and replaced it with padding-top, the transition was smooth.

    So - check for margins on adjacent elements, and try replacing them with padding, if possible.

提交回复
热议问题