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>Documenttitle>
<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">delatebutton>
li>
<li>
<input type="checkbox">
<span>吃饭span>
<button class="delate">delatebutton>
li>
<li>
<input type="checkbox">
<span>吃饭span>
<button class="delate">delatebutton>
li>
ol>
div>
<div class="footer">
<input type="checkbox">
<span>全选/全不选span>
<button>全部删除button>
div>
div>
body>
html>

*{
margin:0;
padding:0;
}
你好,在样式里加上这个,开发中样式里,这个是最打头的,必须要写,去除一些默认的间隙的!
有帮助的话采纳一下哦!