height 100% in Chrome

前端 未结 4 2040
悲&欢浪女
悲&欢浪女 2021-02-02 00:00

I\'m having problems with a side div that won\'t get the height to 100% in Chrome. It works just fine in FF.

I\'m using:

html, body {

 padd         


        
4条回答
  •  你的背包
    2021-02-02 00:45

    From http://doctype.com/give-two-nested-divs-100-minheight:

    The child element inherits the height of the parent container only if it is specified explicitly. But min-height is not an explicit specification of height, so the computed height is "auto" and not 100%.

提交回复
热议问题