Conditional CSS rule targeting Firefox Quantum

后端 未结 2 1726
逝去的感伤
逝去的感伤 2020-12-11 20:38

We are having issues targeting Firefox Quantum when it comes to CSS. We know that the following:

@-moz-document url-prefix() { 
    .my-style{
    }
}
         


        
2条回答
  •  Happy的楠姐
    2020-12-11 21:05

    No. There is no reliable way to do this. Some may suggest user agent string but this, too, has been shown to be unreliable.

    I suggest you use feature queries or detection through javascript or @supports in CSS.

提交回复
热议问题