aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting
diff options
context:
space:
mode:
authorMDN <actions@users.noreply.github.com>2021-09-28 00:50:31 +0000
committerMDN <actions@users.noreply.github.com>2021-09-28 00:50:31 +0000
commit52e48a7ac7bfc64b78c5aabb86cab4c0d7b88054 (patch)
treeda6d856de98ad3aa793cd8f3986b3fb4bb9c1c71 /files/zh-cn/conflicting
parent996ebd1c41727cdad43e5709e190132368d0bd9b (diff)
downloadtranslated-content-52e48a7ac7bfc64b78c5aabb86cab4c0d7b88054.tar.gz
translated-content-52e48a7ac7bfc64b78c5aabb86cab4c0d7b88054.tar.bz2
translated-content-52e48a7ac7bfc64b78c5aabb86cab4c0d7b88054.zip
[CRON] sync translated content
Diffstat (limited to 'files/zh-cn/conflicting')
-rw-r--r--files/zh-cn/conflicting/web/api/wheelevent/index.html120
-rw-r--r--files/zh-cn/conflicting/web/web_components/index.html60
2 files changed, 180 insertions, 0 deletions
diff --git a/files/zh-cn/conflicting/web/api/wheelevent/index.html b/files/zh-cn/conflicting/web/api/wheelevent/index.html
new file mode 100644
index 0000000000..c5d60a279c
--- /dev/null
+++ b/files/zh-cn/conflicting/web/api/wheelevent/index.html
@@ -0,0 +1,120 @@
+---
+title: MouseWheelEvent
+slug: conflicting/Web/API/WheelEvent
+translation_of: Web/API/MouseWheelEvent
+original_slug: Web/API/MouseWheelEvent
+---
+<p>{{APIRef("DOM Events")}}{{ Non-standard_header() }}{{deprecated_header}}</p>
+
+<p>{{ note("由于该事件对象是非标准的,所以Gecko并不准备实现它.") }}</p>
+
+<p><code>MouseWheelEvent</code>事件对象代表了当用户在滚动鼠标滚轮时触发的事件.</p>
+
+<p>要优先使用标准化过的<a href="https://developer.mozilla.org/zh-CN/docs/DOM/WheelEvent" title="https://developer.mozilla.org/zh-CN/docs/DOM/WheelEvent">WheelEvent</a>来代替该陈旧的事件对象.</p>
+
+<h2 id="属性">属性</h2>
+
+<table class="standard-table">
+ <tbody>
+ <tr>
+ <td class="header">名称</td>
+ <td class="header">类型</td>
+ <td class="header">描述</td>
+ </tr>
+ <tr>
+ <td><code>wheelDelta</code></td>
+ <td><code>long</code></td>
+ <td>滚动的距离,以像素为单位 (由MSDN定义,但实际的用法不同, 查看<a href="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/mousewheel" title="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/mousewheel">mousewheel</a>. <strong>只读.</strong></td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_Compatibility" name="Browser_Compatibility">滚轮相关事件对比</h2>
+
+<table class="standard-table" style="width: 527px; height: 100px;">
+ <tbody>
+ <tr>
+ <td class="header">事件类型</td>
+ <td class="header">事件对象</td>
+ <td class="header">是否标准</td>
+ <td class="header">兼容性</td>
+ </tr>
+ <tr>
+ <td><a href="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/mousewheel" title="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/mousewheel">mousewheel</a></td>
+ <td><a href="https://developer.mozilla.org/zh-CN/docs/DOM/MouseWheelEvent" title="https://developer.mozilla.org/zh-CN/docs/DOM/MouseWheelEvent">MouseWheelEvent</a></td>
+ <td>非标准</td>
+ <td>只有Firefox不支持</td>
+ </tr>
+ <tr>
+ <td><a href="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/DOMMouseScroll" title="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/DOMMouseScroll">DOMMouseScroll</a></td>
+ <td><a href="https://developer.mozilla.org/zh-CN/docs/DOM/MouseScrollEvent" title="https://developer.mozilla.org/zh-CN/docs/DOM/MouseScrollEvent">MouseScrollEvent</a></td>
+ <td>非标准</td>
+ <td>只有Firefox支持</td>
+ </tr>
+ <tr>
+ <td><a href="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/wheel">wheel</a></td>
+ <td><a href="https://developer.mozilla.org/zh-CN/docs/DOM/WheelEvent" title="https://developer.mozilla.org/zh-CN/docs/DOM/WheelEvent">WheelEvent</a></td>
+ <td><a href="http://www.w3.org/TR/DOM-Level-3-Events/#event-type-wheel">DOM Level 3</a></td>
+ <td>Firefox 17+ ie9+</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_Compatibility" name="Browser_Compatibility">浏览器兼容性</h2>
+
+<p>{{ CompatibilityTable() }}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari (WebKit)</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{ CompatVersionUnknown() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatIE("6.0") }}</td>
+ <td>{{ CompatVersionUnknown() }}</td>
+ <td>{{ CompatVersionUnknown() }}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Phone</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatNo() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ <td>{{ CompatUnknown() }}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="相关链接">相关链接</h2>
+
+<ul>
+ <li>该事件对象所使用的事件类型 <a href="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/mousewheel" title="https://developer.mozilla.org/zh-CN/docs/DOM/DOM_event_reference/mousewheel">mousewheel</a></li>
+ <li>被标准化的鼠标滚轮事件对象: <a href="https://developer.mozilla.org/zh-CN/docs/DOM/WheelEvent" title="https://developer.mozilla.org/zh-CN/docs/DOM/WheelEvent">WheelEvent</a></li>
+ <li>Gecko中陈旧的非标准的鼠标滚轮事件对象: <a href="https://developer.mozilla.org/zh-CN/docs/DOM/MouseScrollEvent" title="https://developer.mozilla.org/zh-CN/docs/DOM/MouseScrollEvent">MouseScrollEvent</a></li>
+ <li>MSDN中关于该事件对象的文档: {{ spec("http://msdn.microsoft.com/en-us/library/ie/ff974345%28v=vs.85%29.aspx","MouseWheelEvent object") }}</li>
+</ul>
diff --git a/files/zh-cn/conflicting/web/web_components/index.html b/files/zh-cn/conflicting/web/web_components/index.html
new file mode 100644
index 0000000000..2196d5894b
--- /dev/null
+++ b/files/zh-cn/conflicting/web/web_components/index.html
@@ -0,0 +1,60 @@
+---
+title: HTML 导入(HTML Imports)
+slug: conflicting/Web/Web_Components
+tags:
+ - HTML Imports
+ - Web Components
+translation_of: Web/Web_Components/HTML_Imports
+original_slug: Web/Web_Components/HTML_Imports
+---
+<p>{{DefaultAPISidebar("Web Components")}}</p>
+
+<div class="blockIndicator obsolete">
+<p><strong>在 Google Chrome 73 后已过时</strong><br>
+ 此功能已过时。虽然它可能仍然适用于某些浏览器,但不鼓励使用它,因为它随时可能被删除。尽量避免使用它。</p>
+</div>
+
+<div class="warning">
+<p>Firefox 将不会以当前形式发布HTML导入特性,<font><font>有关</font><font> 更多信息,</font><font>请参阅此</font></font><a href="https://hacks.mozilla.org/2015/06/the-state-of-web-components/" rel="noopener"><font><font>状态更新</font></font></a>。<font><font>在对标准达成共识或制定替代机制之前,您可以使用Google等的polyfill </font></font><code><a href="https://github.com/webcomponents/webcomponentsjs" rel="noopener">webcomponents.js</a></code><font><font>。</font></font> </p>
+</div>
+
+<p><strong>HTML Imports </strong>旨在成为 <a href="/zh-CN/docs/Web/Web_Components">Web Components</a> 的打包机制,但也可以单独使用 HTML Imports。</p>
+
+<div>可以在HTML文档中使用<code><a href="/en-US/docs/Web/HTML/Element/link">&lt;link&gt;</a></code> 标记导入HTML文件,如下所示:</div>
+
+<div> </div>
+
+<pre>&lt;link rel="import" href="myfile.html"&gt;</pre>
+
+<p><span style="line-height: 1.5;">链接类型 </span><code style="font-style: normal; line-height: 1.5;">import</code><span style="line-height: 1.5;"> 是新加入的。</span></p>
+
+<h2 id="规范">规范</h2>
+
+<table class="spec-table standard-table">
+ <tbody>
+ <tr>
+ <th scope="col">规范</th>
+ <th scope="col">状态</th>
+ <th scope="col">评论</th>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML Imports', "", "")}}</td>
+ <td>{{Spec2('HTML Imports')}}</td>
+ <td>初步定义</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="浏览器兼容性"><font><font>浏览器兼容性</font></font></h2>
+
+<p>{{Compat("html.elements.link.rel.import")}}</p>
+
+<h2 id="阅读更多"><strong>阅读更多:</strong></h2>
+
+<ul>
+ <li>https://developer.mozilla.org/zh-CN/docs/Web/Web_Components</li>
+ <li>https://developer.mozilla.org/zh-CN/docs/Web/Web_Components/Custom_Elements</li>
+ <li>https://developer.mozilla.org/zh-CN/docs/Web/HTML/Element/template</li>
+ <li>https://developer.mozilla.org/zh-CN/docs/Web/Web_Components/Shadow_DOM<br>
+  </li>
+</ul>