aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/path2d
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2021-02-25 08:31:36 -0500
committerPeter Bengtsson <mail@peterbe.com>2021-02-25 08:31:36 -0500
commit97065b2e68dd8768dc1ea092c893c57ebe205026 (patch)
tree11bf4a1114c543989c24c7a801ba379b2c20a30c /files/zh-cn/web/api/path2d
parentd1794f6b276285489b417053507f432a14be31df (diff)
downloadtranslated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.tar.gz
translated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.tar.bz2
translated-content-97065b2e68dd8768dc1ea092c893c57ebe205026.zip
use class="hidden" not style="display:none"
Diffstat (limited to 'files/zh-cn/web/api/path2d')
-rw-r--r--files/zh-cn/web/api/path2d/addpath/index.html2
-rw-r--r--files/zh-cn/web/api/path2d/path2d/index.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/files/zh-cn/web/api/path2d/addpath/index.html b/files/zh-cn/web/api/path2d/addpath/index.html
index a19a3ce8cf..656c35342c 100644
--- a/files/zh-cn/web/api/path2d/addpath/index.html
+++ b/files/zh-cn/web/api/path2d/addpath/index.html
@@ -53,7 +53,7 @@ ctx.fill(p1);
<p>修改下面的代码并在线查看 canvas 的变化 (查看浏览器兼容性列表,确定你目前的浏览器是否支持这个方法):</p>
-<div style="display: none;">
+<div class="hidden">
<h6 id="Playable_code">Playable code</h6>
<pre class="brush: html">&lt;canvas id="canvas" width="400" height="200" class="playable-canvas"&gt;&lt;/canvas&gt;
diff --git a/files/zh-cn/web/api/path2d/path2d/index.html b/files/zh-cn/web/api/path2d/path2d/index.html
index f606aa678d..16a681cedf 100644
--- a/files/zh-cn/web/api/path2d/path2d/index.html
+++ b/files/zh-cn/web/api/path2d/path2d/index.html
@@ -47,7 +47,7 @@ ctx.stroke(path2);
<p>修改下面的代码并在线查看 canvas 的变化:</p>
-<div style="display: none;">
+<div class="hidden">
<h6 id="Playable_code">Playable code</h6>
<pre class="brush: html">&lt;canvas id="canvas" width="400" height="200" class="playable-canvas"&gt;&lt;/canvas&gt;
@@ -107,7 +107,7 @@ ctx.fill(p);
<p>修改下面的代码并在线查看 canvas 的变化:</p>
-<div style="display: none;">
+<div class="hidden">
<h6 id="Playable_code2">Playable code2</h6>
<pre class="brush: html">&lt;canvas id="canvas" width="400" height="200" class="playable-canvas"&gt;&lt;/canvas&gt;