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

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

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