From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/pt-br/web/css/_colon_last-child/index.html | 121 +++++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 files/pt-br/web/css/_colon_last-child/index.html (limited to 'files/pt-br/web/css/_colon_last-child') diff --git a/files/pt-br/web/css/_colon_last-child/index.html b/files/pt-br/web/css/_colon_last-child/index.html new file mode 100644 index 0000000000..486e3ffb54 --- /dev/null +++ b/files/pt-br/web/css/_colon_last-child/index.html @@ -0,0 +1,121 @@ +--- +title: ':last-child' +slug: 'Web/CSS/:last-child' +tags: + - CSS + - CSS Pseudo-classe + - Layout + - Reference + - Referencia + - Web +translation_of: 'Web/CSS/:last-child' +--- +
{{ CSSRef() }}
+ +

Resumo

+ +

A CSS pseudo-classe :last-child representa qualquer elemento que é o último filho de seu elemento pai.

+ +

Sintaxe

+ +
elemento:last-child { propriedades de estilo }
+ +

Exemplo

+ +

Conteúdo HTML

+ +
<ul>
+  <li>Esse item não é afetado pelo estilo.</li>
+  <li>Esse também não.</li>
+  <li>Esse item é! :)</li>
+</ul>
+ +

Conteúdo CSS

+ +
li:last-child {
+    background-color: lime;
+}
+ +

{{EmbedLiveSample('Example', '100%', 100)}}

+ +

Especificações

+ + + + + + + + + + + + + + + + + + + + + +
EspecificaçãoStatusComentário
{{ SpecName('CSS4 Selectors', '#last-child', ':last-child') }}{{ Spec2('CSS4 Selectors') }}Sem mudança.
{{ SpecName('CSS3 Selectors', '#last-child', ':last-child') }}{{ Spec2('CSS3 Selectors') }}Definição inicial.
+ +

Compatibilidade de navegadores

+ +

{{ CompatibilityTable() }}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Suporte básico1.0{{ CompatGeckoDesktop("1") }}9.09.53.2
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Suporte básico2.1{{ CompatGeckoMobile("1") }}9.010.03.2
+
+ +

Veja também

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