Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// Replace the inline styles:
for (div of document.getElementsByTagName("div")) {
div.style.cssText = "font-size: 3rem"
}
// Clear out all inline styles:
for (div of document.getElementsByTagName("div")) {
div.style.cssText = ""
}
// Clear out all inline styles (not supported in Internet Explorer):
for (div of document.getElementsByTagName("div")) {
div.style.cssText = null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.