How to use height: -webkit-fill-available in Edge browser? How to make a div fill the available space in Edge?

后端 未结 3 1099
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-04 16:51

I am using bootstrap to preview the mobile device as follows:

It works perfectly fine in Chrome. But not on edge :(

My HTML/CSS code is as follows:

相关标签:
3条回答
  • 2021-02-04 17:08

    Need to set the height:100% for .screen container.

    sample code

    0 讨论(0)
  • 2021-02-04 17:22

    I think you can simply declare height twice:

    height: 100%;
    height: -moz-available;          /* WebKit-based browsers will ignore this. */
    height: -webkit-fill-available;  /* Mozilla-based browsers will ignore this. */
    height: fill-available;
    
    0 讨论(0)
  • 2021-02-04 17:29

    Use min-height for IE to fill the available space

     min-height: 100%; in IE 
    
    0 讨论(0)
提交回复
热议问题