aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/_colon_checked
diff options
context:
space:
mode:
authorFlorian Dieminger <me@fiji-flo.de>2021-02-25 14:37:47 +0100
committerGitHub <noreply@github.com>2021-02-25 14:37:47 +0100
commit8879aacd682787fc20ffe2661733f9cd267c81ce (patch)
tree11bf4a1114c543989c24c7a801ba379b2c20a30c /files/zh-cn/web/css/_colon_checked
parentd1794f6b276285489b417053507f432a14be31df (diff)
parent97065b2e68dd8768dc1ea092c893c57ebe205026 (diff)
downloadtranslated-content-8879aacd682787fc20ffe2661733f9cd267c81ce.tar.gz
translated-content-8879aacd682787fc20ffe2661733f9cd267c81ce.tar.bz2
translated-content-8879aacd682787fc20ffe2661733f9cd267c81ce.zip
Merge pull request #70 from peterbe/use-classhidden-not-styledisplaynone
use class="hidden" not style="display:none"
Diffstat (limited to 'files/zh-cn/web/css/_colon_checked')
-rw-r--r--files/zh-cn/web/css/_colon_checked/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/css/_colon_checked/index.html b/files/zh-cn/web/css/_colon_checked/index.html
index 4a95ab5060..85b7dbe44c 100644
--- a/files/zh-cn/web/css/_colon_checked/index.html
+++ b/files/zh-cn/web/css/_colon_checked/index.html
@@ -27,7 +27,7 @@ translation_of: 'Web/CSS/:checked'
<h3 id="基础示例">基础示例</h3>
-<h3 id="Basic_example" style="display: none;">Basic example</h3>
+<h3 id="Basic_example" class="hidden">Basic example</h3>
<h4 id="HTML">HTML</h4>
@@ -86,7 +86,7 @@ option:checked {
<h3 id="借用隐藏的checkbox来切换元素的样式(显示隐藏)">借用隐藏的checkbox来切换元素的样式(显示/隐藏)</h3>
-<h3 id="Toggling_elements_with_a_hidden_checkbox" style="display: none;">Toggling elements with a hidden checkbox</h3>
+<h3 id="Toggling_elements_with_a_hidden_checkbox" class="hidden">Toggling elements with a hidden checkbox</h3>
<p>这个例子利用了<code>:checked</code>伪类,让用户基于复选框的状态切换内容,而无需使用JavaScript。</p>