[HTML] 纯文本查看 复制代码 <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
* {
margin: 0;
padding: 0;
}
.father {
width: 50%;
box-shadow: 0 0 10px rgb(31 55 153 / 10%);
background: #FFF;
padding: 20px;
}
ul {
display: flex;
align-items: center;
justify-content: flex-start;
flex-wrap: wrap;
margin: 0 -13px;
}
ul div {
box-sizing: border-box;
width: 33.33%;
padding: 0 13px;
margin-bottom: 24px;
}
ul div li {
list-style: none;
padding: 10px;
border-radius: 4px;
border: 1px solid #EBEDF0;
}
.father .second {
height: 100px;
background: yellowgreen;
}
</style>
</head>
<body>
<div class="father">
<ul>
<div>
<li>1111</li>
</div>
<div>
<li>222</li>
</div>
<div>
<li>333</li>
</div>
<div>
<li>444</li>
</div>
<div>
<li>555</li>
</div>
</ul>
<div class="second">我是第二个子元素</div>
</div>
</body>
</html> |