[JavaScript] 通过html5 canvas绘制简单的矩形 →→→→→进入此内容的聊天室

来自 , 2019-11-28, 写在 JavaScript, 查看 143 次.
URL http://www.code666.cn/view/e7dfca01
  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4.  
  5. <canvas id="myCanvas" width="200" height="100" style="border:1px solid #c3c3c3;">
  6. Your browser does not support the HTML5 canvas tag.
  7. </canvas>
  8.  
  9. <script type="text/javascript">
  10.  
  11. var c=document.getElementById("myCanvas");
  12. var ctx=c.getContext("2d");
  13. ctx.fillStyle="#FF0000";
  14. ctx.fillRect(0,0,150,75);
  15.  
  16. </script>
  17.  
  18. </body>
  19. </html>
  20. //javascript/4737

回复 "通过html5 canvas绘制简单的矩形"

这儿你可以回复上面这条便签

captcha