css布局移动端手机端优惠券列表我的优惠券页面代码

代码语言:html

所属分类:布局界面

代码描述:css布局移动端手机端优惠券列表我的优惠券页面代码

代码标签: 手机 优惠券 列表 我的 优惠券 页面

下面为部分代码预览,完整代码请点击下载或在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: #eaeaea;
        }
        img {
            vertical-align: middle;
            max-width: 100%;
        }
        .container {
            width: 100%;
            padding: 0 .4rem;
        }
        /*顶部标题返回*/
        .top-bar {
            position: fixed;
            width: 100%;;top: 0;
            left: 0;
            display: flex;
            align-items: center;
            width: 100%;
            height: .9rem;
            padding: 0 .2rem;
            background: #fff;
            z-index: 99;
        }
        .top-bar i {
            display: inline-block;
            width: .5rem;
            height: .9rem;
            background: url(//repo.bfw.wiki/bfwrepo/image/5f7ab7a3a8387.png) left center no-repeat;
            background-size: .68rem .61rem;
            position: relative;
            z-index: 3;
        }
        .top-bar .title {
            position: absolute;
            height: .4rem;
            width: 100%;
            text-align: center;
            left: 0;
            font-size: .34rem;
            z-index: 2;
        }

        .category {
            font-size: .3rem;
            color: #666666;
            position: fixed;
            top: .9rem;
            width: 100%;
            padding: 0 .4rem;
            background: #fff;;z-index: 99;
        }
        .category ul {
            display: flex;
            justify-content: space-between;
            width: 100%;
            align-items: center;
        }
        .category ul li {
            padding: .1rem 0 .3rem 0;
            position: relative;
        }
        .category ul li.active {
            color: #fc1b1b;
        }
        .category ul li.active::after {
            position: absolute;
            content: "";
            display: inline-block;
            bottom: .16rem;
            left: 50%;
            transform: translateX(-50%);
            width: .5rem;
            height: .06rem;
            border-radius: .06rem;
            background: #f91b1b;
        }
        .container {
            width: 100%;
            padding: .35rem .3rem;
            position: relative;
            padding-top: 2.05rem;
            padding-bottom: 1.65rem;
        }
        .container ul {
            display: flex;
            flex-direction: column;
            display: none;
        }
        .container ul.active {
            display: block;
        }
        .container ul li {
            width: 100%;
            height: 2.18rem;
            background: url(//repo.bfw.wiki/bfwrepo/image/60e3a69ca9c5d.png) center center no-repeat;
            background-size: 100%;
            margin-bottom: .15rem;
            display: flex;
            position: relative;
        }
        .container ul li .l {
            flex-shrink: 0;
            width: 2.2rem;
            color: #fff;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .container ul li .l p {
            font-size: .51rem;
            display: flex;
            align-items: baseline;
            padding-top: .5rem;
            padding-bottom: .48rem;
            font-weight: bold;
        }
        .container ul li .l p i {
            font-size: .24rem;
        }
        .container ul li .l span {
            font-size: .3rem;
            color: #a63a08;
        }
        .container ul li .r {
            width: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            padding-left: .45rem;
            padding-right: .15rem;
        }
        .container ul li .r h3 {
            font-size: .32rem;
            color: #000;
        }
        .container ul li .r .use {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: .26rem;
            color: #666666;
            margin-top: .03rem
        }
        .container ul li .r .use button {
            flex-shrink: 0;
            width: 1.2rem;
            height: .52rem;
            line-height: .52rem;
            font-.........完整代码请登录后点击上方下载按钮下载查看

网友评论0