猫眼APP我的界面布局

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>我的</title>
    <link rel="stylesheet" href="./CSS/reset.css">
    <link rel="stylesheet" href="./CSS/public.css">
    <link rel="stylesheet" href="./CSS/my.css">
    <script src="./JS/auto-size.js"></script>
</head>

<body>
    <!-- div1 -->
    <div class="top"></div>
    <header>
        <img src="./IMG/loading_2.e3d934bf_02.png" alt="猫眼">
        <!-- 文字 -->
        <div>
            <p>IaD842919168</p>
            <span><i>V1</i>&nbsp;&nbsp;青铜会员</span>
        </div>
        <!-- 箭头 -->
        <div><a href="./login.html">></a></div>
    </header>
    <!-- 想看 看过 -->
    <!-- div2 -->
    <div>
        <ul>
            <li>
                <i></i>
                <span>想看&nbsp;0</span>
            </li>
            <li>
                <i></i>
                <span>看过&nbsp;0</span>

            </li>
            <li>
                <i></i>
                <span>影评&nbsp;0</span>

            </li>
            <li>
                <i></i>
                <span>话题&nbsp;0</span>
            </li>
        </ul>
    </div>
    <!-- 我的订单 -->
    <!-- div3 -->
    <div>
        <div class="din">
            <p>我的订单</p>
            <p>全部&nbsp;&nbsp;&gt;</p>
        </div>
        <!-- 2 -->
        <div>
            <ul>
                <li>
                    <i></i>
                    <span>未消费</span>
                </li>
                <li>
                    <i></i>
                    <span>待消费</span>

                </li>
                <li>
                    <i></i>
                    <span>待评价</span>

                </li>
                <li>
                    <i></i>
                    <span>退款</span>
                </li>
            </ul>
        </div>
    </div>
    <!-- 我的消息 -->
    <!-- div4 -->
    <div class="din">
        <p>我的消息</p>
        <p>&gt;</p>
    </div>
    <!-- 我的收藏 -->
    <!-- div5 -->
    <div class="din">
        <p>我的收藏</p>
        <p>&gt;</p>
    </div>
    <!-- 会员中心 -->
    <!-- div6 -->
    <div class="din">
        <p>会员中心</p>
        <p>&gt;</p>
    </div>
    <!-- 我的成就 -->
    <!-- div7 -->    
    <div class="din">
        <p>我的成就</p>
        <p>&gt;</p>
    </div>
    <!-- 美团钱包 -->
    <!-- div8 -->  
    <div class="din">
        <p>美团钱包</p>
        <p>&gt;</p>
    </div>
    <!-- 我的余额 -->
    <!-- div9 -->     
    <div class="din">
        <p>我的余额</p>
        <p>0.00元&nbsp;&nbsp;&gt;</p>
    </div>
    <!-- 优惠券 -->
    <!-- div10 -->      
    <div class="din">
        <p>优惠券</p>
        <p>0张可用&nbsp;&nbsp;&gt;</p>
    </div>
    <!-- 商城 -->
    <!-- div11 -->       
    <div class="din">
        <p>商城</p>
        <p>&gt;</p>
    </div>
    <!-- 设置 -->
    <!-- div12 -->  
    <div class="din">
        <p>设置</p>
        <p>手机绑定与更换&nbsp;&nbsp;&gt;</p>
    </div>
    <footer>
        <ul>
            <a href="./reying.html"  class="reying"><li></li></a>
            <a href="./yingyuan.html" class="yingyuan"><li></li></a>
            <a href="./faxian.html" class="faxian"><li></li></a>
            <a href="./my.html" class="my"><li></li></a>
        </ul>
    </footer>
    <div class="bottom"></div>
</body>

</html>
@mixin  f__ce {
    display: flex;
    align-items: center;
}
@mixin  f_ce_ce {
    display: flex;
    justify-content: center;
    align-items: center;
}
@mixin  f_be_ce {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
@mixin f_col_ce_ce {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
@mixin tubiao($width,$height,$x,$y) {
    display: inline-block;
    width: $width;
    height: $height;
    background-image: url('../IMG/icon.png');
    background-position: $x $y;
    background-size: 5rem 3rem;
    margin-bottom: 0.2rem;
}
footer>ul> .my>li {
    display: inline-block;
    width: 0.77rem;            
    height: 1.14rem;    
    background-image: url("../IMG/icon100.png");
    background-size: 5.6rem 5.1rem;
    background-position: -3.02rem -1.57rem!important;
}
body {
    >header {
        width: 10.8rem;
        color: white;
        height: 3.3rem;
        box-sizing: border-box;
        margin-top: 0.75rem;
        padding: 0.7rem 0.5rem;
        background-color: #d33f36;
        @include f__ce;
        >img {
            width: 1.95rem;
            height: 1.95rem;
        }
        // 文字
        >div:nth-of-type(1) {
            flex: 1;
            margin-left: 0.45rem;
            >p {
                font-size: 0.38rem;
                margin-bottom: 0.1rem;
            }
            >span {
                font-size: 0.34rem;
            }
        }
        // 箭头
        >div:nth-of-type(2)>a {
            color: white;
            font-size: 0.6rem;
        }
    }
    >div:nth-of-type(2) {
        background-color: white;
        height: 2.1rem;
        box-sizing: border-box;
        padding: 0.44rem 0 0.4rem;
        font-size: 0.38rem;
        border-bottom: 1px solid  #bebcbc;
        >ul {
            width: 10.8rem;
            @include f_be_ce;
            >li {
                width: 2.7rem;
                @include f_col_ce_ce;
            }
            >li:nth-child(1)>i {
                @include tubiao(0.7rem,0.62rem,0,0)
            }
            >li:nth-child(2)>i {
                @include tubiao(0.7rem,0.58rem,-0.95rem,0)
            }
            >li:nth-child(3)>i {
                @include tubiao(0.75rem,0.55rem,-1.8rem,0)
            }
            >li:nth-child(4)>i {
                @include tubiao(0.67rem,0.65rem,-2.8rem,0)
            }
            >li:nth-child(-n+3) {
                border-right: 1px solid #bebcbc;
            }
        }
    }
    //共用样式
    .din {
        background-color:white;
        border-top: 1px solid #bebcbc;
        font-size: 0.44rem;
        @include f__ce;
        padding: 0.42rem;;
        >p:nth-of-type(1) {
            flex: 1;
        }
        >p:nth-child(2) {
            color: #999999;
        }
    }

    // 我的订单
    >div:nth-of-type(3) {
        margin-top: 0.45rem;
        >div:nth-of-type(2) {
            padding: 0.27rem 0;
            background-color:white;
            border-bottom: 1px solid #bebcbc;
            border-top: 1px solid #bebcbc;
            font-size: 0.34rem;
            >ul {
                width: 10.8rem;
                @include f_be_ce;
                >li {
                    width: 2.7rem;
                    @include f_col_ce_ce;
                }
                >li:nth-child(1)>i {
                    @include tubiao(0.65rem,0.55rem,0,-0.78rem)
                }
                >li:nth-child(2)>i {
                    @include tubiao(0.75rem,0.65rem,-0.95rem,-0.75rem)
                }
                >li:nth-child(3)>i {
                    @include tubiao(0.7rem,0.6rem,-1.85rem,-0.75rem)
                }
                >li:nth-child(4)>i {
                    @include tubiao(0.65rem,0.55rem,-2.85rem,-0.75rem)
                }
            }    
        }
    }
    >div:nth-of-type(4),>div:nth-of-type(8),>div:nth-of-type(12) {
        margin-top: 0.45rem;
    }
    >div:nth-of-type(12) {
        margin-bottom: 4rem;
    }
}
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值