我正在练习使用 cssGetValue 方法从特定 Web 元素的 CSS 属性中检索值。如何从 Web 元素中获取 CSS 值?这是我的 HTML 代码:
<div class="odd content-grid-0 content-grid-item">
<div class="even content-grid-1 content-grid-item impression-pixel-processed">
<div class="odd content-grid-2 content-grid-item">
<div class="even content-grid-3 content-grid-item">
<div class="odd content-grid-4 content-grid-item">
<div class="even content-grid-5 content-grid-item">
<div class="odd content-grid-6 content-grid-item">
<div class="even content-grid-7 content-grid-item">
<div class="odd content-grid-8 content-grid-item">
我需要为每个 DIV 获取 CSS 值“清晰”
clear = left