English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Selector :header de jQuery

Selector de jQuer

Selector :header selecciona todos los elementos de título (<h1> - <h6>)。

Sintaxis:

$(':header')

Ejemplo

Elegir todos los elementos de título (h1h6):

$('document').ready(function(){
  $(':header').css('background', 'coral');
});
Prueba y observa‹/›

Selector de jQuer