This is how you access the <body>
element to set a background style:
document.body.style.background = '';
But how can I access the <html>
element in a similar manner? The following doesn't work:
document.html.style.background = '';
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…