diff options
author | A1lo <15844309+yin1999@users.noreply.github.com> | 2021-06-14 22:15:21 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 22:15:21 +0800 |
commit | c4db5b663c888afa0441286f25479741db51eaf5 (patch) | |
tree | a23626304286188f982775a39e06a1702b8a25d7 | |
parent | cefa97b1fad6f39ffe5af3745a620def98abe9de (diff) | |
download | translated-content-c4db5b663c888afa0441286f25479741db51eaf5.tar.gz translated-content-c4db5b663c888afa0441286f25479741db51eaf5.tar.bz2 translated-content-c4db5b663c888afa0441286f25479741db51eaf5.zip |
Update Web/API/Element/mousemove_event, zh-CN (#1200)
-rw-r--r-- | files/zh-cn/web/api/element/mousemove_event/index.html | 2 |
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> |