![]() ![]() (In particular, IE will ALL-CAPS your property names and lose whitespace.) var css= įor (var sheeti= 0 sheetimodern browsers, you can get the text of every rule (including inline, linked and stylesheets) from the property. In modern browsers, you can get the text of every rule (including inline, linked and imported stylesheets) from the document.styleSheets. For inline stylesheets, you can get the content out of the normal DOM like with any other element: document.getElementsByTagName('style').firstChild.dataįor external, linked stylesheets it's more problematic.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |