Created
June 12, 2020 21:17
-
-
Save djD-REK/8f6b5b6274af48a1680542b3722a1249 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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