Skip to content

Commit

Permalink
Merge pull request #529 from Ghost-017/patch-1
Browse files Browse the repository at this point in the history
Cleared a misunderstanding
  • Loading branch information
iliakan committed Oct 2, 2018
2 parents e2d3f1e + 378b8c2 commit 30a04f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 2-ui/1-document/08-styles-and-classes/article.md
Expand Up @@ -125,7 +125,7 @@ document.body.style.display = "none"; // hide
setTimeout(() => document.body.style.display = "", 1000); // back to normal
```

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.
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.

````smart header="Full rewrite with `style.cssText`"
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.
Expand Down

0 comments on commit 30a04f4

Please sign in to comment.