You can add as many as you want, just separate them by ;
var divs = document.querySelectorAll('li a.shadow'),
i;
for (i = 0; i < divs.length; ++i) {
divs[i].parentNode.setAttribute('style', 'background-color: red !important; color: #fff;');
}
With that being said, if you plan on adding multiple styles it's probably better to add a class that contains all those styles instead, like this:
const element = document.getElementById("myDIV");
element.classList.add("mystyle");
.mystyle {
width: 100%;
padding: 25px;
background-color: coral;
color: white;
font-size: 25px;
}
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…