css布局实现手机端卡包会员卡优惠券h5页面效果代码

代码语言:html

所属分类:布局界面

代码描述:css布局实现手机端卡包会员卡优惠券h5页面效果代码

代码标签: 手机 端卡包 会员卡 优惠券 h5 页面 效果

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>卡包</title>
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <style>
        * {
            margin: 0;
            padding: 0;
            border: 0;
            list-style: none;
            text-decoration: none;
            color: inherit;
            font-weight: normal;
            font-family: "微软雅黑";
            box-sizing: border-box;
            font-style: normal;
            outline: none;
            -webkit-tap-highlight-color: transparent;
        }
        body {
            width: 100%;
            overflow-x: hidden;
            background: #ffffff;
            color: #ffffff;
        }
        img {
            vertical-align: middle;
            max-width: 100%;
        }
        .container {
            width: 100%;
            padding: 0 .4rem;
        }
        /*顶部*/
        .top-bar {
            display: flex;
            justify-content: center;
            align-items: center;
            color: #333333;
            width: 100%;
            height: .88rem;
            position: relative;
        }
        .top-bar i {
            display: inline-block;
            width: .5rem;
            height: .88rem;
            background: url(//repo.bfw.wiki/bfwrepo/image/60b95f5dd4bec.png) left center no-repeat;
            background-size: .17rem .29rem;
            position: absolute;
            left: 0;
        }
        .top-bar span {
            font-size: .36rem;
        }
        /* 卡包列表 */
        .card-list {
            padding: .28rem 0;
            width: 100%;
        }
        .card-list .item {
            width: 6.7rem;
            height: 3.47rem;
            margin-bottom: .25rem;
            padding: .28rem .3rem;
            position: relative;
            border-radius: .3rem;
        }
        .card-list .item.blue {
            background: url(//repo.bfw.wiki/bfwrepo/image/60c698fb22800.png) center center no-repeat;
            background-size: 100%;
        }
        .card-list .item.purple {
            background: url(//repo.bfw.wiki/bfwrepo/image/60c6990853fca.png) center center no-repeat;
            background-size: 100%;
        }
        .card-list .item.red {
            background: url(//repo.bfw.wiki/bfwrepo/image/60c6991d24343.png) center center no-repeat;
            background-size: 100%;
        }
        .card-list .item .name {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        .card-list .item .name h3 {
            font-size: .34rem;
            letter-spacing: .02rem;
        }
        .card-list .item .name span {
            font-size: .28rem;
            display: inline-block;
            background: rgba(255,255,255,.2);
            padding: 0 .2rem;
            height: .4rem;
            line-height: .4rem;
            border-radius: .4rem;
        }
        .card-list .item .time {
            display: flex;
            justify-content: center;
            align-items: baseline;
            padding-top: .4rem;
            position: relative;
        }
        .card-list .item .time i {
            font-size: .24rem;
            letter-spacing: .02rem;
        }
        .card-list .item .time span {
            font-size: .64rem;
            padding: 0 .2rem;
        }
        .card-list .item .detail {
            width: 100%;
            padding-top: .52rem;
        }
        .card-list .item .detail ul {
            width: 100%;
            display: flex;
            justify-content: space-between;
            text-align: center;
            padding: 0 .5rem;
        }
        .card-list .item .detail ul li span {
            display: block;
            float: left;
            font-size: .22rem;
            letter-spacing: .02rem;
        }
        .card-list .item .detail ul li p {
            font-size: .24rem;
            clear: both;
            padding-top: .05rem;
        }

    </style>
    <script type="text/javascript" src="//repo.bfw.wiki/bfwrepo/js/flexible.js"></script>
</head>

<body>
    <div class="container">
        <!--顶部-->
        <div class="top-bar">
            <i></i>.........完整代码请登录后点击上方下载按钮下载查看

网友评论0