aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/_colon_checked/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/css/_colon_checked/index.html')
-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>