aboutsummaryrefslogtreecommitdiff
path: root/files/de/web/css/_colon_-moz-last-node/index.html
blob: 29f8c0b48644628bad36eca86592e64a3c4e045b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
title: ':-moz-last-node'
slug: 'Web/CSS/:-moz-last-node'
tags:
  - CSS
  - CSS Referenz
  - NeedsCompatTable
  - Non-standard
translation_of: 'Web/CSS/:-moz-last-node'
---
<div>{{Non-standard_header}}{{CSSRef}}</div>

<h2 id="Übersicht">Übersicht</h2>

<p>Die <code>:-moz-last-node</code> <a href="/de/docs/Web/CSS">CSS</a> <a href="/de/docs/Web/CSS/Pseudo-classes" title="Pseudo-classes">Pseudoklasse</a> matcht ein Element, das der letzte Kindknoten eines anderen Elements ist. Es unterscheidet sich von {{cssxref(":last-child")}}, da es keine letzten Kindelemente mit darauffolgendem (nicht aus Leerzeichen bestehenden) Text matcht.</p>

<p class="note">Leerzeichen am Ende eines Elements werden zur Bestimmung von <code>:-moz-last-node</code> ignoriert.</p>

<h2 id="Syntax">Syntax</h2>

<pre class="syntaxbox"><var>span</var>:-moz-last-node { <em>Stileigenschaften</em> }
</pre>

<h2 id="Beispiel">Beispiel</h2>

<h3 id="CSS">CSS</h3>

<pre class="brush:css">span:-moz-last-node {
  background-color: lime;
}
</pre>

<h3 id="HTML">HTML</h3>

<pre class="brush:html">&lt;div&gt;
  &lt;span&gt;:-moz-first-node&lt;/span&gt;
  &lt;span&gt;:-moz-last-node&lt;/span&gt;
&lt;/div&gt;
</pre>

<p>{{EmbedLiveSample("Beispiel", "220", "20")}}</p>

<h2 id="Siehe_auch">Siehe auch</h2>

<ul>
 <li>{{cssxref(":-moz-first-node")}}</li>
 <li>{{cssxref(":last-child")}}</li>
</ul>