问题遇到的现象和发生背景
用代码块功能插入代码,请勿粘贴截图
我想要达到的结果
<!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>
<style>
ol {
list-style: none;
}
.title textarea {
width: 300px;
height: 50px;
text-align: center;
outline: none;
}
.list {
width: 300px;
}
.footer {
width: 300px;
height: 50px;
}
li {
box-sizing: border-box;
margin: 0px;
width: 300px;
height: 35px;
border: 1px solid black;
line-height: 35px;
}
ol{
background-color: antiquewhite;
}
.delate {
float: right;
background-color: red;
}
</style>
</head>
<body>
<div class="home">
<div class="title">
<textarea placeholder="please input your content"></textarea>
</div>
<div class="list">
<ol>
<li>
<input type="checkbox">
<span>吃饭</span>
<button class="delate">delate</button>
</li>
<li>
<input type="checkbox">
<span>吃饭</span>
<button class="delate">delate</button>
</li>
<li>
<input type="checkbox">
<span>吃饭</span>
<button class="delate">delate</button>
</li>
</ol>
</div>
<div class="footer">
<input type="checkbox">
<span>全选/全不选</span>
<button>全部删除</button>
</div>
</div>
</body>
</html>
![img](https://img-mid.csdnimg.cn/release/static/image/mid/ask/776388467366198.png "#left")