<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<style>
#box {
width: 100px;
height: 100px;
background-color: red;
}
</style>
</head>
<body>
<div id="box">
</div>
</body>
<script>
window.onload = function () {
let box = document.querySelector("#box")
console.log(box.style)
}
</script>
</html>
为什么在onload事件里面打印box.style,里面的属性值还都是空的呢