aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/element
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/element
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/element')
-rw-r--r--files/zh-cn/web/api/element/insertadjacenthtml/index.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/web/api/element/insertadjacenthtml/index.html b/files/zh-cn/web/api/element/insertadjacenthtml/index.html
index e0ea9cda90..c84cd34a65 100644
--- a/files/zh-cn/web/api/element/insertadjacenthtml/index.html
+++ b/files/zh-cn/web/api/element/insertadjacenthtml/index.html
@@ -23,10 +23,10 @@ translation_of: Web/API/Element/insertAdjacentHTML
<dt><code>position</code></dt>
<dd>一个 {{domxref("DOMString")}},表示插入内容相对于元素的位置,并且必须是以下字符串之一:
<ul>
- <li><code><span style="display: none;"> </span><span style="display: none;"> </span>'beforebegin'</code>:元素自身的前面。</li>
+ <li><code><span class="hidden"> </span><span class="hidden"> </span>'beforebegin'</code>:元素自身的前面。</li>
<li><code>'afterbegin'</code>:<font face="Open Sans, Arial, sans-serif">插入元素内部的第一个子节点之前</font>。</li>
<li><code>'beforeend'</code>:插入元素内部的最后一个子节点之后。</li>
- <li><code>'afterend'</code>:元素自身的后面。<span style="display: none;"> </span><span style="display: none;"> </span></li>
+ <li><code>'afterend'</code>:元素自身的后面。<span class="hidden"> </span><span class="hidden"> </span></li>
</ul>
</dd>
<dt><code>text</code></dt>