摘要: 为了方便引入了jquery: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> #box{width:600px;margin: 0 auto;overflow-x: 阅读全文
posted @ 2019-06-03 17:56 你风致 阅读(2818) 评论(0) 推荐(0) 编辑
摘要: 基于:var canvas = document.getElementById('id');var ctx = canvas.getContext('2d'); 1.样式:ctx.fillStyle = 'color'-填充色ctx.strokeStyle = 'color'-线色ctx.lineW 阅读全文
posted @ 2019-06-03 16:03 你风致 阅读(3384) 评论(0) 推荐(0) 编辑