Skip to content

Commit 30a04f4

Browse files
authored
Merge pull request javascript-tutorial#529 from Ghost-017/patch-1
Cleared a misunderstanding
2 parents e2d3f1e + 378b8c2 commit 30a04f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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

Lines changed: 1 addition & 1 deletion
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)