Home >Web Front-end >H5 Tutorial >Solution to inconsistent border styles when drawing rectangles on HTML5 canvas_html5 tutorial tips
In the past two days, I needed to use my colleague’s HTML5 drawing stuff, and found that the borders drawn by the rectangular drawing function had inconsistent styles. Finally, I found the crux of the problem through some troubleshooting methods, and now I will share it with you.
First attach the code for drawing a rectangle in HTML5: