mirror of
https://github.com/wu736139669/vczero.github.io.git
synced 2026-08-05 06:23:38 +00:00
fix canvas bug
This commit is contained in:
+7
-5
@@ -201,12 +201,14 @@ html body {
|
|||||||
min-height:220px;
|
min-height:220px;
|
||||||
background-color:#fff;
|
background-color:#fff;
|
||||||
opacity:0.8;
|
opacity:0.8;
|
||||||
|
}
|
||||||
|
|
||||||
|
#router_canvas{
|
||||||
-webkit-transform: translateZ(0);
|
-webkit-transform: translateZ(0);
|
||||||
-moz-transform: translateZ(0);
|
-moz-transform: translateZ(0);
|
||||||
-ms-transform: translateZ(0);
|
-ms-transform: translateZ(0);
|
||||||
-o-transform: translateZ(0);
|
-o-transform: translateZ(0);
|
||||||
transform: translateZ(0);
|
transform: translateZ(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ define('home/router', function(require, exports, module) {
|
|||||||
ctx.fill();
|
ctx.fill();
|
||||||
|
|
||||||
ctx.beginPath();
|
ctx.beginPath();
|
||||||
ctx.fillStyle = '#4C4C4C';
|
ctx.fillStyle = '#000';
|
||||||
ctx.fillText(router[i].content, 2, 25 + 3 + i * 25);
|
ctx.fillText(router[i].content, 2, 25 + 3 + i * 25);
|
||||||
ctx.closePath();
|
ctx.closePath();
|
||||||
ctx.fill();
|
ctx.fill();
|
||||||
|
|||||||
Reference in New Issue
Block a user