Files
front-end-example/02-css-layout/03-flex-layout/starter.html
2026-03-12 22:56:33 +08:00

64 lines
1.3 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Flex 布局</title>
<style>
body{
background-color: rgb(244, 247, 251);
}
.panel{
display: flex;
justify-content: space-around;
align-content: center;
padding: 40px;
gap: 20px;
}
.item{
flex:1;
background-color: white;
border: 1px solid rgba(102, 95, 95, 0.11);
border-radius: 20px;
padding: 20px 10px 15px 20px;
margin-top: 250px;
}
a{
text-decoration: none;
color: green;
font-weight: 600;
margin-bottom: 20px;
}
p{
margin-bottom: 30px;
}
</style>
</head>
<body>
<section class="panel">
<article class="item">
<h2>HTML</h2>
<p>学习页面结构和标签。</p>
<a href="#">开始</a>
</article>
<article class="item">
<h2>CSS</h2>
<p>学习布局、样式和视觉表现。</p>
<a href="#">开始</a>
</article>
<article class="item">
<h2>JavaScript</h2>
<p>学习交互、逻辑和数据处理。</p>
<a href="#">开始</a>
</article>
</section>
</body>
</html>