2010-12-16 2 views

Antwort

9

Spezifität ist dein Freund. Wenden Sie Ihre :not(.anifrmclass) Stile auf alle s dann überschreiben Sie mit anderen Werten für <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; 
} 
+0

Warum habe ich nicht daran gedacht. Danke, BoltClock! – phillyville

+0

Beim Formatieren von Listenelementen mit etwas wie dem Rand funktioniert li: not (: last-child) nicht und diese Methode ist keine Hilfe. Niemand möchte dem Endlistenelement eine spezielle Klasse hinzufügen. – IamFace

Verwandte Themen