flex骰子模型

flex布局盒子
  • flex实现骰子是一个联系flex布局的好的素材
    在这里插入图片描述
第一种

在这里插入图片描述

.second-face {
    display: flex;
    justify-content: space-between;
}
第二种

在这里插入图片描述

.second-face {
    display: flex;
    justify-content: space-between;
}
/*将第二个点固定到盒子的下方*/
.second-face span:nth-child(2){
    align-self: flex-end;
}
第三种

在这里插入图片描述

.third-face {
    display: flex;
    justify-content: space-between;
}
.third-face span:nth-child(2){
    align-self: center;
}
.third-face span:nth-child(3){
    align-self: flex-end;
}
第四种

在这里插入图片描述

.fourth-face{
    display: flex;
    justify-content: space-between;
}
.fourth-face .column:nth-child(1){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.fourth-face .column:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
第五种

在这里插入图片描述


.fifth-face {
    display: flex;
    justify-content: space-between;
}
.fifth-face .column:nth-child(1){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.fifth-face .column:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.fifth-face .column:nth-child(3){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
第六种

在这里插入图片描述

.sixth-face {
    display: flex;
    justify-content: space-between;
}
.sixth-face .column:nth-child(1){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.sixth-face .column:nth-child(2){
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值