4.2.2 样式获取 [建议] 获取元素实际样式信息时,应使用 getComputedStyle 或 currentStyle。 解释: 通过 style 只能获得内联定义或通过 JavaScript 直接设置的样式。通过 CSS class 设置的元素样式无法直接通过 style 获取。