HTML,CSS制作(2)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<link rel="stylesheet" href="../CSS/账号.css">
<body>
    <div class="box">
        <div class="top-left">
            <a href="#"><img src="../img/头像.jpg" alt=""></a>
        </div>
        <div class="top-right">
            <a href="#">932jgfhhhfdgdrgrdg</a>
            <p><a href="#">切换账号</a>|<a href="#">退出</a></p>
        </div>
        <div class="bottom">
            <a href="#"><img src="../img/收藏.jpg" alt=""></a>
            <p>商品收藏</p>
            <div class="ziti"><br>
                <a href="#">0</a>
                <p>待付款</p>
            </div>
        </div>
        <div class="bottom">
            <a href="#"><img src="../img/店铺.jpg" alt=""></a>
            <p>店铺关注</p>
            <div class="ziti"><br>
                <a href="#">1</a>
                <p>收货</p>
            </div>
        </div>
        <div class="bottom">
            <a href="#"><img src="../img/小人.jpg" alt=""></a>
            <p>我的京东</p>
            <div class="ziti"><br>
                <a href="#">5</a>
                <p>评论</p>
            </div>
        </div>
    </div>
</body>
</html>
*{
    padding: 0;
    margin: 0;
}
.box{
    width: 250px;
    height: 250px;
    margin: auto;
    background-color: #F7F8FC;
    border: 1px solid white;
}
.top-left img{
    float: left;
    margin-left: 10px;
    margin-top: 10px;
    width: 50px;
}
.top-right{
    float: right;
    font-size: 14px;
    margin-right: 30px;
    margin-top: 15px;
}
.top-right a{
    text-decoration: none;
}
.bottom{
    background-color: #F7F8FC;
    font-size: 10px;
    margin-top: 50px;
    margin-left: 10px;
    float: left;
    text-align: center;
}
.ziti a{
    font-size: 20px;
    text-decoration: none;
}

猜你喜欢

转载自blog.csdn.net/weixin_63529199/article/details/143225779