本文实例讲述了js+html5实现canvas绘制网页时钟的方法,画的是一个可用于网页的、带摆的钟表,可以通过按钮调整其大小和位置,具体实现内容如下
Your browserdoes not support the canvas element!
@H_301_16@Your browserdoes not support the canvas element!
<tr><td><input value="左移" type="button" onclick="westwards()"></td>
<td><input value="右移" type="button" onclick="eastwards()"></td></tr>
<td><input value="右移" type="button" onclick="eastwards()"></td></tr>
<tr><td><input value="上移" type="button" onclick="upwards()"></td>
<td><input value="下移" type="button" onclick="downwards()"></td>
</tr>
</table>