## 整体布局
### 1.项目结构
本项目使用jQuery框架。简单的搭建一个网页项目,继承jQuery框架就可以开始进行开发了。
![](https://box.kancloud.cn/a758b0b4bd9a477473ee792bc32eebc9_282x187.png)
> base.css和base.js为用户自定义文件。
### 2.初步搭建页面。
~~~html
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<link href="https://cdn.bootcss.com/normalize/7.0.0/normalize.css" rel="stylesheet"/>
<link rel="stylesheet" type="text/css" href="css/base.css"/>
</head>
<body>
<!--总容器开始-->
<div class="container">
<h1>我的ToDo</h1>
<form class="add-task">
<!--输入框-->
<input name="content" type="text" placeholder="下午记得要买菜。。。"/>
<!--添加按钮-->
<button type="submit">submit</button>
</form>
<div class="task-list">
<div class="task-item">
<span><input type="checkbox"/></span>
<span class="task-content">item content</span>
<span>delete</span>
<span>detail</span>
</div>
<div class="task-item">
<span><input type="checkbox"/></span>
<span class="task-content">item content</span>
<span>delete</span>
<span>detail</span>
</div>
<div class="task-item">
<span><input type="checkbox"/></span>
<span class="task-content">item content</span>
<span>delete</span>
<span>detail</span>
</div>
<div class="task-item">
<span><input type="checkbox"/></span>
<span class="task-content">item content</span>
<span>delete</span>
<span>detail</span>
</div>
</div>
<!--任务详情开始-->
<div class="task-detail-mask"></div>
<div class="task-detail">
<div class="content"></div>
<div>
<div class="desc">
<textarea name="" rows="" cols=""></textarea>
</div>
</div>
<div class="remind">
<input type="date"/>
<!--<button type="submit">submit</button>-->
</div>
</div>
<!--容器结束-->
</div>
<script type="text/javascript" src="js/jquery.js" ></script>
<script type="text/javascript" src="js/store.legacy.min.js" ></script>
<script type="text/javascript" src="js/base.js" ></script>
</body>
</html>
~~~
### 3.简单测试CSS
~~~css
* {
background: rgba(0,0,0,0.1);
}
body{
}
.container{
max-width: 700px;
margin: 0 auto;
}
~~~