加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
style1.css 1.43 KB
一键复制 编辑 原始数据 按行查看 历史
doudoucode 提交于 2020-06-29 17:38 . doudou init commit
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background-color: #5d8fda;
margin: 1em;
box-sizing: border-box;
padding: 0;
}
.steps,
.boxs {
width: 1000px;
position: relative;
}
.steps {
display: flex;
box-sizing: border-box;
}
.step {
background: #ddd;
width: 80px;
height: 80px;
margin: 0 2rem;
border: none;
box-shadow: 1px 4px 10px #fefefe;
position: relative;
display: flex;
justify-content: center;
align-items: center;
color: #333;
font-weight: 700;
font-size: 2rem;
transition: all 1s ease-in-out;
}
.step::before {
width: 4rem;
height: 20px;
background: #ddd;
display: inline-block;
content: '';
left: -4rem;
position: absolute;
transition: all 3s ease-in-out;
border: none;
}
.steps>.step:first-child::before {
display: none;
}
.boxs {
height: 500px;
margin-top: 2em;
position: relative;
}
.box {
position: absolute;
margin: 0 2rem;
top: 0rem;
left: 0;
width: 100px;
height: 100px;
background-color: rgb(231, 210, 16);
display: flex;
justify-content: center;
align-items: center;
font-size: 4rem;
box-sizing: border-box;
transition: all 1s ease-in-out;
border-radius: 50%;
}
.active {
background-color: yellow;
}
.active::before{
background: yellow;
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化