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

后端 未结 3 1162
佛祖请我去吃肉
佛祖请我去吃肉 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: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;
    

提交回复
热议问题