align-self: center; 在scss中的用法

<view class="page_globe">
   <view class="page_globe_img"></view>
   <view class="page_globe_txt">
    <view class="page_globe_txt_btn"></view>
    <view>完成课程: 1/31</view>
   </view>
  </view>

  .page_globe{
   width: 60%;
   height: 150rpx;
   background-color: #007AFF;
   margin: 0 auto;
   display: flex;
   flex-direction: row;
   justify-content: space-between;
   .page_globe_img{
    width: 45%;
    height: 100%;
    background-color: #999999;
   }
   .page_globe_txt{
    width: 45%;
    height: 80%;
    background-color: #999999;
    align-self: center;
   }
  }

猜你喜欢

转载自blog.csdn.net/m0_49714202/article/details/117300512
今日推荐