<html>
<body style="background-color:yellow;">
<h1>HTML Style 对象</h1>
<h2>backgroundColor 属性</h2>
<p>背景颜色是:</p>
<p id="demo"></p>
<script>
let color = document.body.style.backgroundColor;
document.getElementById("demo").innerHTML = color;
</script>
</body>
</html>