是否可以固定HTML5 canvas
元素的宽度和高度?
通常的方法如下:
<canvas id="canvas" width="300" height="300"></canvas>
发布于 2012-06-18 20:45:44
非常感谢!最后,我用下面的代码解决了像素模糊的问题:
<canvas id="graph" width=326 height=240 style='width:326px;height:240px'></canvas>
添加“半像素”可以消除线条的模糊。
https://stackoverflow.com/questions/4938346
复制相似问题