Height 100% on html/body is not working on iPhone

后端 未结 4 635
天涯浪人
天涯浪人 2021-01-18 04:53

I have created a responsive website using Foundation with a footer that is absolutely positioned on the bottom of the page. On my desktop browsers, it looks exactly like it

4条回答
  •  Happy的楠姐
    2021-01-18 05:02

    You could use:

    height: 100vh;
    

    which will be 100% viewport height.

    Browser compability: http://caniuse.com/#search=vh

提交回复
热议问题