ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(10, 100); ctx.lineTo(300,100); ctx.stroke();. 运行结果绘制出来的并不是一个像素宽度的线.
確定! 回上一頁