📜  如何在 javascript 代码示例中居中画布

📅  最后修改于: 2022-03-11 15:02:04.230000             🧑  作者: Mango

代码示例1
canvas.style = "position: absolute; top: 0px; left: 0px; right: 0px; bottom: 0px; margin: auto; border:2px solid blue";