Make DIV cover 100% of viewport instead of 100% of Body

前端 未结 4 2031
无人及你
无人及你 2021-02-14 10:22

My post is in regards to http://www.thepostboard.net

I need to make the black box that is currently covering 100% of the viewport cover the entire page instead. You\'ll

4条回答
  •  一向
    一向 (楼主)
    2021-02-14 10:48

    try to add this css:

    html {
    height: 100%;
    margin 0;
    }
    

提交回复
热议问题