Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 30a04f4

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

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

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)
Please sign in to comment.