小程序基础布局作业--筛子筛子

小程序基础布局作业–筛子

wxml

<view class="father">
  <view class="box1">
    <view class="point"></view>
  </view>
  <view class="box2">
    <view class="point"></view>
    <view class="point"></view>
  </view>
</view>
<view class="father">
  <view class="box3">
    <view style="padding-left:4px">
      <view class="point" ></view>
    </view>
    <view>
      <view class="point"></view>
    </view>
    <view style="padding-right:4px">
      <view class="point" ></view>
    </view>
  </view>
  <view class="box4">
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
  </view>
</view>
<view class="father">
  <view class="box5">
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
  </view>
  <view class="box6">
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
  </view>
</view>
<view class="father">
  <view class="box7">
    <view>
      <view class="point"></view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
  </view>
  <view class="box8">
    <view>
      <view class="point"></view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point" style="background-color:#fff"></view>
      <view class="point"></view>
    </view>
    <view>
      <view class="point"></view>
      <view class="point"></view>
      <view class="point"></view>
    </view>
  </view>
</view>

wxss

page{
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between; 
}
view{
  box-sizing: border-box;
  border: solid 1px;
}
.father{
  border: #ffffff;
  display: flex;
  width: 100%;
  justify-content: space-around;
}
.father>view{
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
}
page{
  box-sizing: border-box;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;  
}
view{
  box-sizing: border-box;
  border: solid 1px;
}
.father{
  border: #ffffff;
  display: flex;
  width: 100%;
  justify-content: space-around;
}
.father>view{
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
}
.point{
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #000000;
}
.box1{
  justify-content: center;
  align-items: center;
}
.box2{
  justify-content: space-around;
  align-items: center;
}

.box3 view{
  border: white;
  display: flex;
}
.box3 view:nth-child(3){
  
  justify-content: flex-end;
}
.box3 view:nth-child(2){
  justify-content: center;
}
.box3,.box4,.box5,.box6,.box7,.box8{
  justify-content: space-around;
}
.box4 view,.box5 view,.box6 view,.box7 view,.box8 view{
  border: white;
  display: flex;
  justify-content: space-around;
}





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值