一. 功能
- 增加待办清单
- 删除单个待办清单
- 删除全部待办清单
- 完成清单后选中
二. 缺点
- 不能刷新
三. 部分代码
1. CSS代码
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
input,textarea,select{
outline: none;
}
.clearfix:after {
content:"";
display: block;
clear:both;
}
header{
width: 100%;
height: 88px;
background-color: #a7d9ff;
color: #fff;
text-align: center;
line-height: 88px;
font-size: 36px;
}
.wrap{
width: 96%;
padding: 0 2%;
margin: auto;
}
.add{
border-bottom: 1px solid #aaa;
}
.add input,.add i{
display: block;
float: left;
height: 100px;
}
.add input{
border: none;
width: 90%;
font-size: 32px;
}
.add input::placeholder{
color: #ccc;
}
.add i{
width: 10%;
font-size: 100px;
line-height: 100px;
color: #ccc;
}
.list-item{
border-bottom: 1px solid #ddd;
height: 150px;
}
.list-item p,.list-item i{
display: block;
float: left;
height: 150px;
}
.list-item-checkbox{