if(document.styleSheets[index].cssRules) rules=document.styleSheets[index].cssRules
else if(document.styleSheets[index].rules) rules=document.styleSheets[index].rules;
var firstRule=rules[0];
var selector=firstRule.selectorText;
var style=firstRule.style;
No comments:
Post a Comment