代码比较简单,这里我这直接把html、css和js代码放到一起
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="vue.js"></script>
<style>
* {
padding: 0;
margin: 0;
}
body {
margin: 0 auto;
}
/* 头部 */
#top {
height: 180px;
width: 100%;
/* background-color: aqua; */
}
#top h2 {
text-align: center;
font-size: 40px;
padding-top: 50px;
}
/* 中间 */
#mid {
height: 500px;
/* background-color: bisque; */
text-align: center;
}
#mid .new-todo {
width: 500px;