HTML 5 标签

<!DOCTYPE HTML>
<html>
<body>

<canvas id="myCanvas">your browser does not support the canvas tag </canvas>

<script type="text/javascript">

var canvas=document.getElementById('myCanvas');
var ctx=canvas.getContext('2d');
ctx.fillStyle='#FF0000';
ctx.fillRect(0,0,80,100);

</script>

</body>
</html> 
 

posted @ 2022-01-26 18:13  码农编程进阶笔记  阅读(29)  评论(0编辑  收藏  举报
返回顶部 有事您Q我