Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

CssRule.cssText

 

Summary

cssText returns the current text style rule.

Syntax

string = cssRule.cssText 

Instance

if (myRule.cssText.indexOf ("background-color")! = -1) {
   bgRule = MyRule;
} 
... 

Specification

DOM Level 2 Style - cssRule

Etiquetas y colaboradores del documento

 Colaboradores en esta página: fscholz, arunpandianp, teoli, HenryGR
 Última actualización por: arunpandianp,