Movatterモバイル変換


[0]ホーム

URL:


  1. Tecnología web para desarrolladores
  2. API web
  3. CSSStyleRule

Esta página ha sido traducida del inglés por la comunidad.Aprende más y únete a la comunidad de MDN Web Docs.

View in EnglishAlways switch to English

CSSStyleRule

Baseline Widely available *

This feature is well established and works across many devices and browser versions. It’s been available across browsers since julio de 2015.

* Some parts of this feature may have varying levels of support.

CSSStyleRule representa una sola regla de estilos CSS. Implementa la interfazCSSRule with a type value of1 (CSSRule.STYLE_RULE).

Sintaxis

La sintaxis es descrita usando el formatoWebIDL.

interface CSSStyleRule : CSSRule {    attribute DOMString selectorText;    readonly attribute CSSStyleDeclaration style;};

Propiedades

CSSStyleRule.selectorText

Obtiene la representación textual del selector para esta regla, e.g."h1,h2".

CSSStyleRule.styleRead only

Retorna el objetoCSSStyleDeclaration para la regla.Sólo lectura.

Especificaciones

Specification
CSS Object Model (CSSOM)
# the-cssstylerule-interface

Compatibilidad con navegadores

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2026 Movatter.jp