Why does height 100% work when DOCTYPE is removed?

前端 未结 5 1433
我寻月下人不归
我寻月下人不归 2020-11-22 05:25

This is the entire code:




    
5条回答
  •  鱼传尺愫
    2020-11-22 05:50

    You would need to make your html and body tags height 100% to fill the page.

    css:

    html, body{
      height: 100%;
    }
    

提交回复
热议问题