以下代码不绘制平滑线:
var context = mainCanv.getContext("2d"); if (context) { context.moveTo(0,0); context.lineTo(100,75); context.strokeStyle = "#df4b26"; context.lineWidth = 3; context.stroke(); }
Can I turn off antialiasing on an HTML element?