scss切页面

422101-20190403183107993-226536888.png

html

<div class="data-list">
    <div class="data-list-item">
        <div class="data-list-item-image">
            <img src="/Wx/YearCard/image/head.png">
        </div>
        <div class="data-list-item-content">
            <div class="data-list-item-content-title">宿迁文旅集团旅游单人年卡</div>
            <div class="data-list-item-content-sub">畅游宿迁-乐趣无穷</div>
            <div class="data-list-item-content-date">有效期至:2020-04-02</div>
            <div class="data-list-item-content-btn">查看年卡信息</div>
        </div>
    </div>

</div>

scss

.data-list {
  width: px2rem(750px);
  height: auto;

  .data-list-item {
    width: px2rem(710px);
    height: auto;
    margin: 0 auto;
    margin-bottom: px2rem(80px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;

    .data-list-item-image {
      img {
        width: px2rem(230px);
        border-radius: px2rem(20px);
      }
    }

    .data-list-item-content {
      position:relative;
      width: px2rem(710-230-47px);

      .data-list-item-content-title {
        line-height: px2rem(75px);
        font-size: px2rem(34px);
        font-weight: bold;
        color: #313131;
      }

      .data-list-item-content-sub {
        font-size: px2rem(26px);
        color: #444444;
        margin-bottom: px2rem(20px);
      }

      .data-list-item-content-date {
        font-size: px2rem(26px);
        color: #ACACAC;
      }

      .data-list-item-content-btn {
        position: absolute;
        bottom: 0;
        right: 0;
        width: px2rem(210px);
        height: px2rem(56px);
        border: px2rem(2px) solid rgba(94, 202, 190, 1);
        border-radius: px2rem(28px);
        color:#5ECABE;
        font-size:px2rem(28px);
        text-align: center;
        line-height: px2rem(56px);
      }
    }
  }
}

.data-list-hide {
  display: none;
}

转载于:https://www.cnblogs.com/jiqing9006/p/10650751.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值