From 378b8c2a90cf59e6a48cfad472046332e765c8a0 Mon Sep 17 00:00:00 2001 From: Ghost-017 <31908292+Ghost-017@users.noreply.github.com> Date: Mon, 1 Oct 2018 12:36:19 +0800 Subject: [PATCH] Update article.md Style is not a property, so I think you meant the display? --- 2-ui/1-document/08-styles-and-classes/article.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/2-ui/1-document/08-styles-and-classes/article.md b/2-ui/1-document/08-styles-and-classes/article.md index 3efd68f5..ed9db303 100644 --- a/2-ui/1-document/08-styles-and-classes/article.md +++ b/2-ui/1-document/08-styles-and-classes/article.md @@ -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.