当我尝试使用以下代码绘制单个像素的黑色线条时:
context.strokeStyle = '#000';
context.beginPath();
context.moveTo(x1, y1);
context.lineTo(x2, y2);
context.lineWidth = 1;
context.stroke();
context.closePath();
我有多个带灰色边框的像素行,如何解决?
这里是一个例子http://jsfiddle.net/z4VJq/