force css grid container to fill full screen of device

前端 未结 4 1875
孤城傲影
孤城傲影 2021-01-31 01:28

How do I force a css grid container take the full width and height of the device screen for a single page app? Modified example is from Mozilla: Firefox documentation

4条回答
  •  执笔经年
    2021-01-31 01:56

    If you want the .wrapper to be fullscreen, just add the following in the wrapper class:

    position: absolute; width: 100%; height: 100%;

    You can also add top: 0 and left:0

提交回复
热议问题