Input form inside canvas element

前端 未结 4 788
抹茶落季
抹茶落季 2020-12-30 06:07

I\'m wondering if there was any way to get an input from the user, preferably to a texbox (or anywhere a user can see what he\'s writting) in a canvas element through javasc

4条回答
  •  有刺的猬
    2020-12-30 06:23

    Position a textbox over the top of the canvas element using absolute positioning.

    my suggested layout is something like:

    with this you have the relative positioned

    to base where your going to pop things up over, I would probably also add a modal backdrop...

    hope this helps -ck

提交回复
热议问题