开发者

Adding draggable textarea inside HTML5's canvas

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜