Селектор :first-child


Содержание:

first-child selector

Описание: Selects all elements that are the first child of their parent.

  • Добавлен в версии: 1.1.4jQuery( ":first-child" )

While :first matches only a single element, the :first-child selector can match more than one: one for each parent. This is equivalent to :nth-child(1).