开发者

Adding draggable textarea inside HTML5's canvas

开发者 https://www.devze.com 2023-02-25 19:55 出处:网络
It is possible to add a draggable and resizable textarea inside a canvas tag? I already tried this: <canvas id=\"canvas2\" width=\"650\" height=\"850\">

It is possible to add a draggable and resizable textarea inside a canvas tag?

I already tried this:

<canvas id="canvas2" width="650" height="850"> 
 <div id="draggable" class="ui-widget-content">
    <textarea rows="2" cols="20">
      Example
    </textarea>
  </div>                    
</canvas>

But it doesn't show anything =S.

What else should I try开发者_JAVA技巧?

Thanx.


You can try to make a paper kind of thing by including both textarea and canvas, and then toggling by altering the z-index in the css part of the elements.

0

精彩评论

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