<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>呼应式结构</title>
<style>
body {
font-family: sans-serif;
}
.container {
display: flex;
flex-direction: row;
justify-content: space-around;
align-items: center;
}
.column {
width: 二5%;
padding: 两0px;
background-color: #ccc;
}
@media screen and (max-width: 768px) {
.container {
flex-direction: column;
}
}
</style>
</head>
<body>
<div class="container">
<div class="column">形式 1</div>
<div class="column">形式 两</div>
<div class="column">形式 3</div>
<div class="column">形式 4</div>
</div>
</body>
</html>
登录后复造
发表评论 取消回复