对子集padding 对父级没有影响
但是子集宽度或者高度超过父级的边框时候 子集会直接出去
<!-- <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/reset.css">
<style>
ul {
margin: 10px auto;
width: 200px;
height: 200px;
border: 1px solid red;
}
li {
height:50px;
border:1px solid #ccc;
padding-left: 0px;
padding-top:0px;
}
</style>
</head>
<body>
<ul>
<li>1</li>
</ul>
</body>
</html> -->