Dynamically changing height of div element based on content

前端 未结 3 1752
有刺的猬
有刺的猬 2021-01-14 05:28

I\'m working on a Facebook-like toolbar for my website.

There\'s a part of the toolbar where a user can click to see which favorite members of theirs are online.

3条回答
  •  日久生厌
    2021-01-14 05:45

    Maybe you could remove the height property (make sure it's not set in the CSS) and let the DIV expand in height by itself.

提交回复
热议问题