Auto height of div

前端 未结 5 1113
被撕碎了的回忆
被撕碎了的回忆 2020-12-13 10:27

Browser shows div only when I set exact height. But i want to create resizable div according it\'s contents. Tried height: auto and height:100%. It doesn\'t help.

My

5条回答
  •  抹茶落季
    2020-12-13 11:09

    According to this, you need to assign a height to the element in which the div is contained in order for 100% height to work. Does that work for you?

提交回复
热议问题