나는 말도 안되는 말을하지 않으며, 코드는 직접 게시 할 것입니다.
<! op : 250px;} #Clock {테두리 : 1px solid #cccccc;} </style> </style> </head> <body> <div> <canvas id = clock height = 600px 너비 = 600px> </div> </div. RIPT 유형/javaScript> var ctx = var width = ctx.canvas; r = var remix = ctx.save (); start (); // 경로 시작 ctx.linewidth = 10; false); ctx (); +px arial; ctx.textalign = center; (r -30*r y y = math.sin*(r -30*rem); i ++; i ++; REM); var y y. 0, 2 * math.pi, false); else {ctx.arc (x, y, 2 * rem, 0, 2 * math.pi, ctx.fillstyle = #ccc ;} ctx.fill ();} doughhouse (시간) {ctx.beginpath (); / 12 / 60*CTX.LINECAP = RING; 2); ctx.restore (); (rad); .Restore ();} CTX.Save () ) CTX.MOVETO (-2*rem); -r + 16*ctx.fill ();} ctx.beginpath (); * rem, 0, 2 * ctx.fill ();} ctx.ctx. gethouse (); 복원 ();} draw01 ();요약
위는 HTML5의 HTML5 구현입니다. 편집기가 시계 코드를 확대 할 수 있습니다. VEVB WULIN 웹 사이트를 지원해 주셔서 대단히 감사합니다!