First, the style of the graphic display, that is, the color, transparency, etc. of the graphic; second, the algorithm, that is, the appearance of the graphic, which is a simple line, rectangle, circle, sector, polygon, etc. JavaScript and CSS are undoubtedly the best partners, all The most basic element of vector graphics is a 1*1px point, which can be formed into a line, a surface, or any shape.
The basis of all vector graphics____1*1px point
If you have a certain understanding of CSS and are familiar with clip:rect(top,right,bottom,left), you can know that the code clips an area. It should be noted that the positions of the four sides in clip:rect are relative to the object and not to the window. In addition, the position must be absolute here.