Turn from: https://software.intel.com/zh-cn/blogs/2014/05/20/html5-canvas-html5/?utm_campaign=CSDN&utm_source= Intel.csdn.net&utm_medium=link&utm_content=%20others-%20canvas
The light rose that. In Tuesday, 20/05/2014-00:55 submitted
In the HTML5 can use the canvas tag on the canvas, first directly on the code, this article first briefly introduce the use of canvas, simple to draw a few circles, rectangles, triangles, writing.
The comments are given in the code, where it is particularly important to use canvas paint when you have to Beginpath and colsepath, but sometimes do not need to, in order to prevent problems, you can redraw a diagram each time you open the path, after the drawing closed the path.
The code is implemented on a Cheetah browser, and some browsers may not support it.[HTML] View Plain copy <! doctype html> <meta charset= "Utf-8" >