From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/ja/web/css/_colon_-moz-last-node/index.html | 47 +++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 files/ja/web/css/_colon_-moz-last-node/index.html (limited to 'files/ja/web/css/_colon_-moz-last-node/index.html') diff --git a/files/ja/web/css/_colon_-moz-last-node/index.html b/files/ja/web/css/_colon_-moz-last-node/index.html new file mode 100644 index 0000000000..3613692e05 --- /dev/null +++ b/files/ja/web/css/_colon_-moz-last-node/index.html @@ -0,0 +1,47 @@ +--- +title: ':-moz-last-node' +slug: 'Web/CSS/:-moz-last-node' +tags: + - CSS + - CSS Reference + - Non-standard +translation_of: 'Web/CSS/:-moz-last-node' +--- +
{{Non-standard_header}}{{CSSRef}}
+ +

概要

+ +

:-moz-last-node CSS 擬似クラスは、ある要素の最後の子ノードの要素に一致します。最後の子要素の後に (スペースではない) テキストがあると一致しないため、{{ Cssxref(":last-child") }} とは動作が異なります。

+ +

要素の末尾にある空白文字は :-moz-last-node の決定において無視されます。

+ +

構文

+ +
span:-moz-last-node { style プロパティ }
+
+ +

+ +

CSS

+ +
span:-moz-last-node {
+  background-color: lime;
+}
+
+ +

HTML

+ +
<div>
+  <span>:-moz-first-node</span>
+  <span>:-moz-last-node</span>
+</div>
+
+ +

{{EmbedLiveSample("Example", "220", "20")}}

+ +

参照

+ + -- cgit v1.2.3-54-g00ecf