How to write css fallbacks for vh vw

前端 未结 4 1223
忘了有多久
忘了有多久 2020-12-13 06:58

Can anyone explain how fallbacks work in CSS? I am trying to set it up for vh and vw and clearly I am not getting it...

Here is my attempted solution, which does not

4条回答
  •  -上瘾入骨i
    2020-12-13 07:23

    Place your fall back above you other values. If the overriding values dont work on a browser, the first value is used.

     height: 41px;  /* The Fallback */
    height: 5.2vh;
    

提交回复
热议问题