aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting
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/conflicting
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/conflicting')
-rw-r--r--files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html2
-rw-r--r--files/zh-cn/conflicting/web/api/push_api/index.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html b/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html
index 1ab629b72f..d2c7dcbbbb 100644
--- a/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html
+++ b/files/zh-cn/conflicting/learn/css/building_blocks/selectors/index.html
@@ -358,7 +358,7 @@ a.homepage:hover, a.homepage:focus, a.homepage:active {
<table style="border: 2px outset #3366bb; padding: 1em;">
<tbody>
<tr>
- <td>Go to our <a class="tutospecial" href="#" title="Home page">Home page</a><span style="display: none;"> </span><span style="display: none;"> </span></td>
+ <td>Go to our <a class="tutospecial" href="#" title="Home page">Home page</a><span class="hidden"> </span><span class="hidden"> </span></td>
</tr>
</tbody>
</table>
diff --git a/files/zh-cn/conflicting/web/api/push_api/index.html b/files/zh-cn/conflicting/web/api/push_api/index.html
index 76526ed4ce..6f6f75ce4f 100644
--- a/files/zh-cn/conflicting/web/api/push_api/index.html
+++ b/files/zh-cn/conflicting/web/api/push_api/index.html
@@ -75,7 +75,7 @@ original_slug: Web/API/Push_API/Using_the_Push_API
<li>在你的 service worker 中,设置一个 <code>push</code> 事件句柄来响应接收到的推送消息。
<ol>
<li>如果你想要将一个信道消息发送回主 context(看第6步),你需要先取得之前发送给 service worker 的  <code>port2</code> 的引用 ({{domxref("MessagePort")}}) 。这个可以通过传给 <code>onmessage</code> handler ({{domxref("ServiceWorkerGlobalScope.onmessage")}}) 的{{domxref("MessageEvent")}} 对象取得。 具体地说,是 <code>ports</code> 属性的索引 0 。 之后你可以用 {{domxref("MessagePort.postMessage()")}} 来向 <code>port1</code> 发送消息 。</li>
- <li>如果你想要使用系统通知,可以调用 {{domxref("ServiceWorkerRegistration.showNotification()")}} 。注意,在我们的代码中,我们将其运行在一个 {{domxref("ExtendableEvent.waitUntil()")}} 方法中——这样做将事件的 生命周期(lifetime)扩展到了通知被处理后,使得我们可以确认事情像我们期望的那样进行。<span id="cke_bm_307E" style="display: none;"> </span></li>
+ <li>如果你想要使用系统通知,可以调用 {{domxref("ServiceWorkerRegistration.showNotification()")}} 。注意,在我们的代码中,我们将其运行在一个 {{domxref("ExtendableEvent.waitUntil()")}} 方法中——这样做将事件的 生命周期(lifetime)扩展到了通知被处理后,使得我们可以确认事情像我们期望的那样进行。<span id="cke_bm_307E" class="hidden"> </span></li>
</ol>
</li>
</ol>