企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
## Canvas画布大小设置 ~~~ <canvas id="myCanvas" class="canvas" width="100px" height="100px"> ~~~ ~~~ var canvas = document.getElementById("myCanvas"); canvas.width = 100; canvas.height = 100; ~~~ ~~~ <canvas id="myCanvas" class="canvas" style="width: 100px;height: 100px;"> ~~~ > 1、2设置的是画布的大小 > 3画布被拉伸之后的大小