Is there a way to get the CSS: not () selector working in IE and Chrome?

Does anyone know any tricks for using the CSS :not() selector in IE and Chrome?

eg. this works in Firefox: iframe:not(.anifrmclass){}

Hooray!

+4
source share
1 answer

Specificity is your friend. Apply the styles :not(.anifrmclass) to all <iframe> , then override the other values ​​for <iframe class="anifrmclass"> .

 iframe { /* Styles for all -other- iframes */ display: none; } iframe.anifrmclass { /* Override for this class with values other than the above */ display: inline-block; } 
+9
source

Source: https://habr.com/ru/post/1332393/


All Articles