diff options
Diffstat (limited to 'files/de/web/css/angrenzende_geschwisterselektoren/index.html')
| -rw-r--r-- | files/de/web/css/angrenzende_geschwisterselektoren/index.html | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/files/de/web/css/angrenzende_geschwisterselektoren/index.html b/files/de/web/css/angrenzende_geschwisterselektoren/index.html deleted file mode 100644 index b5ff92dda2..0000000000 --- a/files/de/web/css/angrenzende_geschwisterselektoren/index.html +++ /dev/null @@ -1,88 +0,0 @@ ---- -title: Angrenzende Geschwisterselektoren -slug: Web/CSS/Angrenzende_Geschwisterselektoren -tags: - - CSS - - CSS Referenz - - NeedsMobileBrowserCompatibility - - Selectors - - Selektoren -translation_of: Web/CSS/Adjacent_sibling_combinator ---- -<p>{{CSSRef("Selectors")}}</p> - -<p>Dies wird Nachbar- oder Nächstes-Geschwister-Element-Selektor genannt. Er selektiert nur das angegebene Element, das dem zuvor angegebenen Element direkt folgt.</p> - -<h2 id="Syntax">Syntax</h2> - -<pre class="syntaxbox"><var>vorheriges_Element</var> + <var>Zielelement</var> { <em>Stileigenschaften</em> } -</pre> - -<h2 id="Beispiel">Beispiel</h2> - -<pre class="brush: css">li:first-of-type + li { - color: red; -} -</pre> - -<pre class="brush: html"><ul> - <li>One</li> - <li>Two</li> - <li>Three</li> -</ul></pre> - -<p>{{EmbedLiveSample('Beispiel', 200, 100)}}</p> - -<p>Ein weiterer Anwendungsfall ist das Stylen von "Beschriftungs-spans" der darauffolgenden {{HTMLElement("img")}} Elemente:</p> - -<pre class="brush: css">img + span.caption { - font-style: italic; -} -</pre> - -<p>matcht die folgenden {{HTMLElement("span")}} Elemente:</p> - -<pre class="brush: html"><img src="photo1.jpg"><span class="caption">The first photo</span> -<img src="photo2.jpg"><span class="caption">The second photo</span> -</pre> - -<h2 id="Spezifikationen">Spezifikationen</h2> - -<table class="standard-table"> - <thead> - <tr> - <th scope="col">Specification</th> - <th scope="col">Status</th> - <th scope="col">Comment</th> - </tr> - </thead> - <tbody> - <tr> - <td>{{SpecName('CSS4 Selectors', '#adjacent-sibling-combinators', 'next-sibling combinator')}}</td> - <td>{{Spec2('CSS4 Selectors')}}</td> - <td> </td> - </tr> - <tr> - <td>{{SpecName('CSS3 Selectors', '#adjacent-sibling-combinators', 'Adjacent sibling combinator')}}</td> - <td>{{Spec2('CSS3 Selectors')}}</td> - <td> </td> - </tr> - <tr> - <td>{{SpecName('CSS2.1', 'selector.html#adjacent-selectors', 'Adjacent sibling selectors')}}</td> - <td>{{Spec2('CSS2.1')}}</td> - <td>Ursprüngliche Definition</td> - </tr> - </tbody> -</table> - -<h2 id="Browser_Kompatibilität">Browser Kompatibilität</h2> - -{{Compat("css.selectors.adjacent_sibling")}} - -<p>[1] Internet Explorer 7 aktualisiert den Style nicht korrekt, wenn ein Element dynamisch vor einem Element platziert wurde, das auf den Selektor gepasst hat. Wenn in Internet Explorer 8 ein Element durch Klick auf einen Link dynamisch eingefügt wird, wird der <code>:first-child</code>-Stil nicht angewandt bis der Link den Fokus verliert.</p> - -<h2 id="Siehe_auch">Siehe auch</h2> - -<ul> - <li><a href="/de/docs/Web/CSS/Allgemeine_Geschwisterselektoren">Allgemeine Geschwisterselektoren</a></li> -</ul> |
