在Chrome中绘制线条

时间:2014-05-07 12:48:40

标签: google-chrome canvas

Firefox29和IE9完美渲染,但Chrome没有。这是由错误造成的吗?

ctx.beginPath();
ctx.lineWidth = 2;
ctx.lineTo( 593.3050280683777 ,  32.44333714926335 ); 
....
ctx.lineTo( 706.7133058984912 ,  188.50554181134356 ); 
ctx.stroke();

http://jsfiddle.net/drps/73qxS/

Chrome 34.0.1847.131:

chrome(34.0.1847.131) screenshot

火狐:

http://i.imgur.com/Ru4LJ9P.png

0 个答案:

没有答案