开发者

Add Input Elements in Canvas HTML5

I am trying to create a dr开发者_如何学Pythonaggable input text box in Canvas, but Canvas doesn't seem to be allowing creation of any input element. Can anyone please help?


You can't include HTML elements in Canvas. HTML5 Canvas is a surface reserved for drawing. You are drawing it from Javascipt code after obtaining Graphics Context.

Maybe you can use just CSS positioning to handle moving around the HTML. It can be done with/without Canvas.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜