CSS3 :last-childセレクタ
定義と使い方
:last-child セレクタは、親要素の最後の子要素にマッチします。
ヒント:p:last-child は p:nth-last-child(1) と同等です。
ブラウザサポート
| セレクタ | |||||
|---|---|---|---|---|---|
| :last-child | 4.0 | 9.0 | 3.5 | 3.2 | 9.6 |
その他の例
その他の拡張
:last-child セレクタは、親要素の最後の子要素にマッチします。
ヒント:p:last-child は p:nth-last-child(1) と同等です。
| セレクタ | |||||
|---|---|---|---|---|---|
| :last-child | 4.0 | 9.0 | 3.5 | 3.2 | 9.6 |
完全なCSSセレクタリファレンス