Page height to 100% of viewport?

后端 未结 4 1526
孤街浪徒
孤街浪徒 2020-12-08 10:21

I\'ll start by saying that I am very very new to web development as a whole and that this is my very first responsive site so please be gentle and bear this in mind, I am th

4条回答
  •  被撕碎了的回忆
    2020-12-08 10:56

    On Chrome, just adding display: flex on the body is enough.

    On Firefox, you must add height: 100vh to get the desired result. And a margin: 0 will get rid of the annoying scroll bars.

    
      

提交回复
热议问题