Does anyone know any tricks for using the CSS :not() selector in IE and Chrome?
:not()
eg. this works in Firefox: iframe:not(.anifrmclass){}
iframe:not(.anifrmclass){}
Hooray!
Specificity is your friend. Apply the styles :not(.anifrmclass) to all <iframe> , then override the other values ββfor <iframe class="anifrmclass"> .
:not(.anifrmclass)
<iframe>
<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; }
Source: https://habr.com/ru/post/1332393/More articles:is it possible to have a circular dependency between the .java and .scala classes? - javaHow can I determine if a view matrix is ββleft or right? - matrixRetain ownership of UIImage created using UIGraphicsGetImageFromCurrentImageContext - memory-managementThe namespace 'x' already contains a definition for 'FixupCollection' - c #tapestry mockups and component libraries - javaspecialization - c ++The LotusScript ArrayUnique function doesn't seem to work with date and time arrays - arraysCompilation error while trying to compile an Android application using ant - androidHow to efficiently display a custom video stream in OpenGL? - video-streamingHow many columns of a database table are too many? - mysqlAll Articles