JSFiddle - React, Tailwind, and code Playground
by uedatakuya
CSS
body {
background-image: url("http://placekitten.com/g/200/300");
}
@media screen and (min-width: 600px) {
body {
background-image: url("http://placekitten.com/g/300/300");
}
}
JavaScript
var sheets = document.styleSheets;
for (var i = 0; i < sheets.length; i++) {
var rules = sheets[i].rules;
for (var j = 0; j < rules.length; j++) {
if (rules[j].style) {
var style = rules[j].style;
console.log(style.backgroundImage);
}
}
}