Skip to content

Commit 8c088b1

Browse files
committed
docs(dom): fix css
1 parent 64ae2a9 commit 8c088b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/dom/css.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ divStyle.cssText = '';
8989
```javascript
9090
// HTML 代码如下
9191
// <div id="myDiv"
92-
// style="margin: 0 10px; background-color: #CA1; border: 1px solid red;"
92+
// style="height: 1px;width: 100%;background-color: #CA1;"
9393
// ></div>
9494
var myDiv = document.getElementById('myDiv');
9595
var divStyle = myDiv.style;
96-
divStyles.length // 3
96+
divStyle.length // 3
9797
```
9898

9999
上面代码中,`myDiv`元素的行内样式共包含3条样式规则。

0 commit comments

Comments
 (0)