fix canvas bug

This commit is contained in:
lh_wang
2015-08-06 15:57:58 +08:00
parent d6a5d6cb9d
commit 134dfb7aef
2 changed files with 8 additions and 6 deletions
+7 -5
View File
@@ -201,12 +201,14 @@ html body {
min-height:220px;
background-color:#fff;
opacity:0.8;
}
#router_canvas{
-webkit-transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
-moz-transform: translateZ(0);
-ms-transform: translateZ(0);
-o-transform: translateZ(0);
transform: translateZ(0);
}
+1 -1
View File
@@ -32,7 +32,7 @@ define('home/router', function(require, exports, module) {
ctx.fill();
ctx.beginPath();
ctx.fillStyle = '#4C4C4C';
ctx.fillStyle = '#000';
ctx.fillText(router[i].content, 2, 25 + 3 + i * 25);
ctx.closePath();
ctx.fill();