ctuation">.</span>height <span class="token operator">=</span> <span class="token string">'20px'</span>
console<span class="token punctuation">.</span><span class="token function">log</span><span class="token punctuation">(</span>div<span class="token punctuation">.</span>offsetHeight<span class="token punctuation">)</span>
</code></pre></div><p>强制清空渲染队列的 style 样式请求：</p> <ul><li>offsetTop、offsetLeft、offsetWidth、offsetHeight</li> <li>scrollTop、scrollLeft、scrollWidth、sc