aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/element
diff options
context:
space:
mode:
authorA1lo <15844309+yin1999@users.noreply.github.com>2021-06-14 22:15:21 +0800
committerGitHub <noreply@github.com>2021-06-14 22:15:21 +0800
commitc4db5b663c888afa0441286f25479741db51eaf5 (patch)
treea23626304286188f982775a39e06a1702b8a25d7 /files/zh-cn/web/api/element
parentcefa97b1fad6f39ffe5af3745a620def98abe9de (diff)
downloadtranslated-content-c4db5b663c888afa0441286f25479741db51eaf5.tar.gz
translated-content-c4db5b663c888afa0441286f25479741db51eaf5.tar.bz2
translated-content-c4db5b663c888afa0441286f25479741db51eaf5.zip
Update Web/API/Element/mousemove_event, zh-CN (#1200)
Diffstat (limited to 'files/zh-cn/web/api/element')
-rw-r--r--files/zh-cn/web/api/element/mousemove_event/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/zh-cn/web/api/element/mousemove_event/index.html b/files/zh-cn/web/api/element/mousemove_event/index.html
index afc2062ab1..a6aace0933 100644
--- a/files/zh-cn/web/api/element/mousemove_event/index.html
+++ b/files/zh-cn/web/api/element/mousemove_event/index.html
@@ -41,7 +41,7 @@ translation_of: Web/API/Element/mousemove_event
<h2 id="例子"><span style="">例子</span></h2>
-<p>下面的例子将使用 {{domxref("Element/mousedown_event", "mousedown")}}, <code>mousemove</code>, and {{domxref("Element/mouseup_event", "mouseup")}} 事件,实现一个允许用户在 HTML5 <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Canvas_API">canvas</a>绘图的功能。这个例子的功能很简单:线的粗细设置为1,颜色始终为黑色。</p>
+<p>下面的例子将使用 {{domxref("Element/mousedown_event", "mousedown")}}, <code>mousemove</code> 以及 {{domxref("Element/mouseup_event", "mouseup")}} 事件,实现一个允许用户在 HTML5 <a href="https://wiki.developer.mozilla.org/en-US/docs/Web/API/Canvas_API">canvas</a>绘图的功能。这个例子的功能很简单:线的粗细设置为1,颜色始终为黑色。</p>
<p>当页面加载完成,我们使用变量 <code>myPics</code> 和<code>context</code>分别保存ID为<code>myPics</code>的DOM元素和接下来需要加工的的2d元素。</p>