Html
    Css
    Js

    
                        
li {
	width:4px;
	height:4px;
	box-sizing:border-box;
	display:inline-block;
}
#warp {
	width:400px;
	border:1px solid black;
}
ul {
	padding:0;
	margin:0;
}
.tsb {
	display:inline-block;
	padding:0;
	margin:0;
	position:relative;
	top:10px;
}
.tsb span {
	height:30px;
	width:30px;
	display:inline-block;
	margin:0;
}
.tsb span:nth-child(1) {
	background:rgba(255,0,255);
}
.tsb span:nth-child(2) {
	background:rgba(0,255,255);
}
.tsb span:nth-child(3) {
	background:rgba(255,255,0);
}
.tsb span:nth-child(4) {
	background:rgba(0,0,255);
}
.tsb span:nth-child(5) {
	background:rgba(0,255,0);
}
.tsb span:nth-child(6) {
	background:rgba(255,0,0);
}
.tsb span:nth-child(7) {
	background:rgba(0,0,0);
}

                        
↑上面代码改变,会自动显示代码结果 jQuery调用版本:1.11.3
 立即下载

原生javript绘画板

更新时间:2020-03-13 01:11:03

0