aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/windoweventhandlers/onafterprint/index.html
diff options
context:
space:
mode:
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 cdf54dcead..3cbbe02468 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")}}事件的{{domxref("EventHandler")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</p>
+<p>{{domxref("WindowEventHandlers")}}的onafterprint属性是用于处理当前窗口的{{event("afterprint")}}事件的{{event("Event_handlers")}}。这些事件会在被用户打印结束或者中止打印窗口的情况下触发。</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>