javascript - How to display a Web Page's Stylesheet -



javascript - How to display a Web Page's Stylesheet -

is there way display total css stylesheet of web page, other fetching every style each element this:

document.write("width:"+document.getelementbyid("to").style.width+";");

the css can in external file, or within <style> tag.

you can utilize document.stylesheets

like in document.stylesheets[0].cssrules[0].csstext

javascript html css stylesheet

Comments

Popular posts from this blog

javascript - mongodb won't find my schema method in nested container -

Hibernate criteria by a list of natural ids -

ios - Lagging ScrollView with UIWebview inside -