:nth-last-of-type()

このエントリーをはてなブックマークに追加

:nth-last-of-type(n) は兄弟要素で特定の要素のうち後ろから数えてn番目の要素を絞り込めるセレクタです。

dt:nth-of-type(1){/*1番目の最後のdt要素*/}
dt:nth-of-type(3){/*最後から数えて3番目のdt要素*/}

前から数える場合は、:nth-of-type()を利用します。

参考URL

:nth-last-of-type() pseudo-class - w3C

登録日 : 2013年02月08日 最終更新日 : 2013年2月8日

同じカテゴリー(Selector)のエントリー

検索

スポンサードリンク

バージョン

リファレンス