1 Star 1 Fork 0

GrapeTech/flexbox-demo

Create your Gitee Account
Explore and code with more than 13.5 million developers,Free private repositories !:)
Sign up
文件
This repository doesn't specify license. Please pay attention to the specific project description and its upstream code dependency when using it.
Clone or Download
flexbox-demo-5.html 1.11 KB
Copy Edit Raw Blame History
zglit authored 2018-09-24 21:50 +08:00 . 新建 flexbox-demo-5.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<style>
* {
box-sizing: border-box;
}
*:before, *:after {
box-sizing: inherit;
}
body {
width: 100%;
height: 100%;
font-size: 100%;
line-height: 1.5;
}
.example {
width: 100%;
height: 100vh;
max-width: 1200px;
margin: 0 auto;
padding: 1em;
display: flex;
flex-direction: column;
align-items: center;
}
.circle {
width: 100px;
height: 100px;
border-radius: 50%;
}
.red {
background-color: darkred;
}
.blue {
background-color: lightblue;
}
.pink {
background-color: darksalmon;
}
</style>
</head>
<body>
<div class="example">
<div class="circle red"></div>
<div class="circle blue"></div>
<div class="circle pink"></div>
</div>
</body>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/GrapeTech/flexbox-demo.git
git@gitee.com:GrapeTech/flexbox-demo.git
GrapeTech
flexbox-demo
flexbox-demo
master

Search