Html5.0 canvas text box

I want to draw a login interface, so I need to draw a text box for input and a button for sending! if I achieved this using an input tag and buttons, it will be easy! but I needed to draw them on the canvas using html5.0. I searched google for two days, I can not find a good idea! who has experience? Help me! thanks in advance!

+3
source share
3 answers

I would highly recommend using HTML elements for this. You can overlay them on top of the canvas using CSS positioning, so it will look like what you painted on the canvas itself.

Making this clean with canvas is very difficult.

-, . , , , . , , , , , copypaste, ...

.

. HTML. , .

+16

, , html , .

, , , , , , . , onKeydown key code . ( Unicode ?). . , , .

:)

+1

? , , canvas .

0

Source: https://habr.com/ru/post/1716376/


All Articles