Cheatah: "Komplexe" Selektoren in Netscape 4

Beitrag lesen

Hi,

hm. Ich werde bei der Arbeit noch mal nachsehen, woran der negative Test liegen könnte;

got it:

[...]
  <style type="text/css">
    /* Tests: */
    .c1 span { color: blue; }
[...]
<tr class="c1">[...]<td><span>blau</span></td></tr>

Verlege ich die Klasse ins <td>, macht's Netscape 4.8 mit. Er beherrscht also den Nachfahrenselektor, aber irgendwo hat er Probleme. Noch'n paar Tests:

.c1         { background-color: red; } /* wirkt */
.c1 td      { background-color: red; } /* wirkt */
.c1 td span { background-color: red; } /* wirkt nicht */
span        { background-color: red; } /* wirkt */
td span     { background-color: red; } /* wirkt nicht */
td a        { background-color: red; } /* wirkt */
.c1 a       { background-color: red; } /* wirkt nicht */

Die ".c1 ... /* wirkt nicht */" wirken, wenn class="c1" im <td> statt im <tr> steht. Erkennt da jemand ein Muster?

Cheatah

--
X-Self-Code: sh:( fo:} ch:~ rl:° br:> n4:& ie:% mo:) va:) de:] zu:) fl:{ ss:) ls:~ js:|
X-Self-Code-Url: http://emmanuel.dammerer.at/selfcode.html
X-Will-Answer-Email: No
X-Please-Search-Archive-First: Absolutely Yes