The Canvas object contains the size for the current entire document in pixels. It will change if you resize your document by resizing the window it is in.译:画布对象包含了整个文档的所有像素点的尺寸。如果窗口尺寸变化,它也会跟着变化。