aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/api/element/mousemove_event
diff options
context:
space:
mode:
Diffstat (limited to 'files/zh-cn/web/api/element/mousemove_event')
-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>