In the past, when I used canvas to draw pictures, I always wrote the width and height directly in the canvas tag. There was no problem. However, I have never explored why the width and height should be written directly in the canvas tag, because this is the case in various examples. Written. Today Sir Wang raised a question: If the width and height are written in
< ;/head>