s=document.styleSheets;
for(i=0;i < s[0].cssRules.length;i++){
alert(s[0].cssRules[i].cssText);
}
for(i=0;i < s[0].cssRules.length;i++){
alert(s[0].cssRules[i].cssText);
}
reference from How can I get CSS comments with javascript?
Other CSS reference
CSS frquently used attributes
Mozilla CSS Extensions
WebKit CSS Styles
FF 與 IE CSS的區別
CSS 於IE6、IE7、Firefox間的兼容hack
沒有留言:
張貼留言