Skip to content

Commit 378b8c2

Browse files
authored
Update article.md
Style is not a property, so I think you meant the display?
1 parent 880659f commit 378b8c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

2-ui/1-document/08-styles-and-classes/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ document.body.style.display = "none"; // hide
125125
setTimeout(() => document.body.style.display = "", 1000); // back to normal
126126
```
127127

128-
If we set `display` to an empty string, then the browser applies CSS classes and its built-in styles normally, as if there were no such `style` property at all.
128+
If we set `display` to an empty string, then the browser applies CSS classes and its built-in styles normally, as if there were no such `display` property at all.
129129

130130
````smart header="Full rewrite with `style.cssText`"
131131
Normally, we use `style.*` to assign individual style properties. We can't set the full style like `div.style="color: red; width: 100px"`, because `div.style` is an object, and it's read-only.

0 commit comments

Comments
 (0)