aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
diff options
context:
space:
mode:
authorRyan Johnson <rjohnson@mozilla.com>2021-05-28 12:05:52 -0700
committerGitHub <noreply@github.com>2021-05-28 12:05:52 -0700
commit220a7d23b0755acc06146c1262aa09ba22d6e3b1 (patch)
tree50a6ffafe663dc65f1a0f8816862d60e7ce23a33 /files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
parent2958ec7e85c9a1182cd81728e3705948a2c39d71 (diff)
downloadtranslated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.gz
translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.tar.bz2
translated-content-220a7d23b0755acc06146c1262aa09ba22d6e3b1.zip
Revert "replace some domxref macro calls with event macro calls (#1016)" (#1017)
This reverts commit 2958ec7e85c9a1182cd81728e3705948a2c39d71.
Diffstat (limited to 'files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html')
-rw-r--r--files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html b/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
index 3cbbe02468..cdf54dcead 100644
--- a/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
+++ b/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
@@ -7,7 +7,7 @@ translation_of: Web/API/WindowEventHandlers/onafterprint
---
<div>{{ApiRef}}</div>
-<p>{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{event("Event_handlers")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</p>
+<p>{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{domxref("EventHandler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</p>
<p>{{event("beforeprint")}}和<code>afterprint</code> 事件允许页面在打印开始前修改它们的内容(比如移除一个横幅等),打印结束后,这些修改会恢复原状。一般情况下,你更喜欢使用 <code><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/Media_Queries/Using_media_queries#Media_types">@media print</a></code> CSS规则,但是在某些情况下这些事件会有他们的必要性。</p>