是否可以在HTML5网页上接受手写笔输入 [英] Is it possible to accept stylus input on a HTML5 web page

查看:707
本文介绍了是否可以在HTML5网页上接受手写笔输入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个网页,用户可以使用手写笔编写签名(例如签署包裹或包裹时)。有谁知道这是否可能?我不确定从哪里开始,但我猜我必须使用元素和javascript?

I want to create a web page where the user would be able to write their signature using a stylus (like when you sign for a parcel or package). Does anyone know if this is possible? I'm not sure exactly where to start but I'm guessing that I would have to use the element and javascript?

推荐答案

只要您的客户端使用的设备支持使用手写笔触摸输入,这是完全可能的。

It's perfectly possible as long as the device your client will be using supports touch input using stylus.

您可以看到本教程,了解如何使用< canvas> 元素创建一个简单的绘图应用。

You can see this tutorial to see how to use <canvas> element to create a simple drawing app.

要查看支持画布的浏览器,请参阅此页

To see which browsers support canvas, see this page.

这篇关于是否可以在HTML5网页上接受手写笔输入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆