开发者

How to draw picture in the text area of HTML?

I want to draw geometrical figure in the <textarea> of HTML pages, but I'm facing difficulty in how to do that. Could anyone please tell 开发者_如何学Pythonme?


You can use the HTML5 <canvas> element and its javascript API to draw geometric figures in an HTML document. There are many examples and tutorials of its usage, but here is one I found this morning: Mozilla Canvas Tutorial


You can’t draw in HTML <textarea> elements. You can only put text in them. So the nearest you can get to drawing in them is ASCII art.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜