运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
x
 
1
<!doctype html>
2
<html>
3
<head>
4
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
5
<title>Javascript canvas画图实例</title>
6
<style>
7
*{margin:0;padding:0;}
8
    .fa{width:740px;margin:0 auto;}
9
    .top{margin:20px 0;}
10
    .top input{width:25px;height:25px;border:1px solid #fff;border-radius:4px;background:#ddd;}
11
    .top .i1{background:#000000;}
12
    .top .i2{background:#FF0000;}
13
    .top .i3{background:#80FF00;}
14
    .top .i4{background:#00FFFF;}
15
    .top .i5{background:#808080;}
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
xxxxxxxxxx
1
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
Javascript canvas画图实例
分类
网站常用
描述
用Javascript和canvas实现的涂鸦板——画图程序网页版,不支持IE浏览器,大家都懂的。 <br>  请使用火狐或Chrome浏览器运行效果。
收藏