<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>九宫格</title>
<style>
.main{
width: 600px;
height: 600px;
margin: 0 auto;
text-align: center;
}
.col1, .col2, .col3 {
width: 100%;
height: 200px;
display: flex;
}
.item{
width: 30%;
display: flex;
align-items: center;
background-color: skyblue;
margin: 5px;
padding-left: 85px;
color: aliceblue;
font-size: 30px;
}
.two{
background-color:crimson;
}
</style>
</head>
<body>
<div class="main">
<h2>九宫格布局</h2>
九宫格制作代码
最新推荐文章于 2022-02-13 15:58:05 发布