aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/element
diff options
context:
space:
mode:
authorTanner Dolby <tannercdolby@gmail.com>2022-02-22 01:49:36 -0800
committerGitHub <noreply@github.com>2022-02-22 17:49:36 +0800
commit6e9fe98036090a37cc6247b873845505e5b512fb (patch)
tree5fc00117ddfd9f448eb9e8011b5bd7f6d8000e8d /files/zh-cn/web/api/element
parent70c3e11f3335e7701325f125fd712c84d6c1f9bf (diff)
downloadtranslated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.gz
translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.tar.bz2
translated-content-6e9fe98036090a37cc6247b873845505e5b512fb.zip
Removes empty <div> or <p> elements from pages (#3093)
* Removes all empty paragraph elements * Removes all empty div elements * Preserve empty div in code snippet * Preserve empty elements inside code snippets * Remove fr files which were converted into markdown * Web/CSS/transform-function/scaleX()/index.html The file is already renamed to index.md。 * remove not needed file * Resolve remaining conflict Co-authored-by: julieng <julien.gattelier@gmail.com> Co-authored-by: Masahiro FUJIMOTO <mfujimot@gmail.com>
Diffstat (limited to 'files/zh-cn/web/api/element')
-rw-r--r--files/zh-cn/web/api/element/append/index.html4
-rw-r--r--files/zh-cn/web/api/element/keydown_event/index.html2
-rw-r--r--files/zh-cn/web/api/element/scrollwidth/index.html2
3 files changed, 4 insertions, 4 deletions
diff --git a/files/zh-cn/web/api/element/append/index.html b/files/zh-cn/web/api/element/append/index.html
index 00d22e2232..cf074d4b52 100644
--- a/files/zh-cn/web/api/element/append/index.html
+++ b/files/zh-cn/web/api/element/append/index.html
@@ -17,11 +17,11 @@ browser-compat: api.Element.append
<div>被插入的 {{domxref("DOMString")}} 对象等价为 {{domxref("Text")}} 节点。</div>
-<div></div>
+
<div>与 {{domxref("Node.appendChild()")}} 的差异:</div>
-<div></div>
+
<ul>
<li><code>Element.append()</code>允许追加  {{domxref("DOMString")}} 对象,而<code><font face="Open Sans, Arial, sans-serif"> </font>Node.appendChild()</code> 只接受 {{domxref("Node")}} 对象。</li>
diff --git a/files/zh-cn/web/api/element/keydown_event/index.html b/files/zh-cn/web/api/element/keydown_event/index.html
index 56777100fb..36dee45b4c 100644
--- a/files/zh-cn/web/api/element/keydown_event/index.html
+++ b/files/zh-cn/web/api/element/keydown_event/index.html
@@ -5,7 +5,7 @@ translation_of: Web/API/Element/keydown_event
---
<div>{{APIRef}}</div>
-<div></div>
+
<p><code><strong>keydown</strong></code>事件触发于键盘按键按下的时候。</p>
diff --git a/files/zh-cn/web/api/element/scrollwidth/index.html b/files/zh-cn/web/api/element/scrollwidth/index.html
index 21a8bf162b..040210e909 100644
--- a/files/zh-cn/web/api/element/scrollwidth/index.html
+++ b/files/zh-cn/web/api/element/scrollwidth/index.html
@@ -9,7 +9,7 @@ translation_of: Web/API/Element/scrollWidth
<div><strong><code>Element.scrollWidth</code></strong> 这个只读属性是元素内容宽度的一种度量,包括由于overflow溢出而在屏幕上不可见的内容。</div>
-<div></div>
+
<p><code>scrollWidth</code>值等于元素在不使用水平滚动条的情况下适合视口中的所有内容所需的最小宽度。 宽度的测量方式与{{domxref("Element.clientWidth", "clientWidth")}}相同:它包含元素的内边距,但不包括边框,外边距或垂直滚动条(如果存在)。 它还可以包括伪元素的宽度,例如{{cssxref("::before")}}或{{cssxref("::after")}}。 如果元素的内容可以适合而不需要水平滚动条,则其<code>scrollWidth</code>等于{{domxref("Element.clientWidth", "clientWidth")}}</p>