私はそれほどナンセンスではありません、私は次のことを直接投稿します。
<! OP:250px;} #clock {border:1px solid #cccccc;} </style> </head> <body> <divas id = canvas height = 600px width = 600px> </canvas> </div> ript type/javascript.getelementbyid( 'clock')= '2d'); r = width = width /200; begin path() false); ctx.stroke(); +px arial; textalign = center; (r -30*rem); ; I ++; rem); 0、2 * math.pi、false); fillstyle =#000;} ;} ctx.fill();} drawhouse(){)save(); / 12 /60 2)ctx.restore();} (rad); lime rem .restore();} drawsecond(ctx.save(); )ctx.moveto(-2*rem) -r + 16*ctx.ortore();} ctx.beginpath(); * rem、0、2 * math.pi、fals);} function draw01() now.getseconds(); restore();} draw01();要約します
上記は、編集者がクロックコードをズームできるHTML5の実装です。 VEVBウーリンのウェブサイトへのご支援ありがとうございます!