足球圈移动端和京东分类页(移动端)

足球圈移动端

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./足球圈移动/iconfont.css">
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        ul{
            list-style: none;
        }
        html,body{
            height: 100%;
        }
        /* 弹性布局 */
        body{
            display: flex;
            flex-direction: column;
        }
        header{
            height: 44px;
            background-color:#0cc440;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        /* 设置头部字体方框 */
        header div{
            width: 60px;
            height: 25px;
            line-height: 25px;
            text-align: center;
            font-size: 12px;
        }
        /* 设置头部字体方框圆角 */
        header div:nth-child(1){
            border-radius: 12px 0 0 12px;
            background-color: #63d985; 
            color: white;
        }
        header div:nth-child(2){
            border-radius: 0 12px 12px 0;
            background-color: #3dd066;
            color: #a9e4b4;
        }
        /* 中间部分 */
        section{
            flex: 1;
            overflow: auto;
            /* 解决挤压头部空间 */
        }
        section ul{
            display: flex;
            position: sticky;
            top: 0;
            /* 使移动图片这个还在最上面 */
            background-color: white;
            /* 使移动图片最上面不覆盖字 */
        }
        /* 中间部分上面字体 */
        section ul li{
            flex: 1;
            text-align: center;
            height: 35px;
            line-height: 35px;
            border-bottom: 1px solid #d9d9d9;
            color: #8c8c8c;
            font-size: 14px;
        }
        section ul li:hover{
            border-bottom: 2px solid #08c63e;
            color: #14bf4d;
        }
        section .list{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            /* 使中间有空隙,而不是最右边有空隙 */
        }
        /* 设置包含图片和字体方框 */
        section .list>div{
            margin-top: 4px;
            width: 49%;
            border: 1px solid gray;
        }
        /* 每一行两个图片,不重叠 */
        section .list>div img{
            width: 100%;
        }
        /* 设置图片下面字体 */
        section .list>div p{
            height: 30px;
            line-height: 30px;
            font-size: 12px;
            text-indent: 10px;
        }
        footer{
            height: 44px;
            background-color: white;
            color: #d5d5d7;
        }
        /* 使呈现一行显示 */
        footer ul{
            display: flex;
            height: 100%;
            /* 解决 justify-content: center; */
        }
        /* 使一行占满显示 */
        footer li{
            flex: 1;
            /* 使图片和字呈上下显示 */
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        footer li:hover{
            color: #08ca43;
        }
        footer li i{
            height: 21px;
            line-height: 21px;
            font-size: 16px;
            text-align: center;
        }
        footer li span{
            height: 17px;
            line-height: 17px;
            font-size: 12px;
            text-align: center;
        }
        /* 设置照相机大小 */
        footer li:nth-child(3) i{
            width: 50px;
            height: 50px;
            border: 1px solid #dadada;
            border-radius: 50%;
            position: absolute; 
            /* 调整位置 */
            left: 50%;
            margin-left: -25px; 
            top: -8px;
            font-size: 30px;
            text-align: center;
            line-height: 50px;
            background-color: white;
        }
        footer li:nth-child(3){
            position: relative;
        }
    </style>
</head>
<body>
    <header>
        <div>热点</div>
        <div>关注</div>
    </header>
    <section>
        <ul>
            <li>足球现场</li>
            <li>足球生活</li>
            <li>足球美女</li>
        </ul>
        <div class="list">
            <div>
                <img src="./images/0.jpg" alt="">
                <p>第一个图片</p>
            </div>
            <div>
                <img src="./images/0.jpg" alt="">
                <p>第一个图片</p>
            </div>
            <div>
                <img src="./images/0.jpg" alt="">
                <p>第一个图片</p>
            </div>
            <div>
                <img src="./images/0.jpg" alt="">
                <p>第一个图片</p>
            </div>
            <div>
                <img src="./images/0.jpg" alt="">
                <p>第一个图片</p>
            </div>
            <div>
                <img src="./images/0.jpg" alt="">
                <p>第一个图片</p>
            </div>
        </div>
    </section>
    <footer>
        <ul>
            <li>
                <i class="iconfont icon-shouye"></i>
                <span>首页</span>
            </li>
            <li>
                <i class="iconfont icon-fangdajing"></i>
                <span>发现</span>
            </li>
            <li>
                <i class="iconfont icon-zhaoxiangji"></i>
            </li>
            <li>
                <i class="iconfont icon-wode-wode"></i>
                <span>我的</span>
            </li>
            <li>
                <i class="iconfont icon-tuichu"></i>
                <span>退出</span>
            </li>
        </ul>
    </footer>
</body>
</html>

请添加图片描述
请添加图片描述
请添加图片描述
请添加图片描述

足球圈移动端(rem)

请添加图片描述

京东分类页(移动端)

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html,body{
            height: 100%;
        }
        ul{
            list-style: none;
        }
        body{
            display: flex;
            flex-direction: column;
        }
        header{
            height: 45px;
            background-color: gray;
        }
        header ul{
            display: flex;
            overflow: auto;
            color: white;
        }
        /* 横向滚动 */
        header ul li{
            flex-shrink: 0;
            line-height: 45px;
            padding: 0 10px;
        }
        header ul li:hover{
            background-color: white;
            color: red;
        }
        footer{
            height: 50px;
            background-color: gray;
        }
        section{
            flex: 1;
            /* 剩余空间占满 */
            display: flex; 
            overflow: auto;
        }
        section ul{
            width: 85px;
            overflow: auto;
        }
        section ul li{
            height: 45px;
            line-height: 45px;
            text-align: center;
            font-size: 14px;
            background-color: #f8f8f8;
        }
        section ul li:hover{
            background-color: white;
            color: #e96062;
        }
        section>div{
            flex: 1;
            background-color:white;
            display: flex;
            flex-wrap: wrap;
            /* 调整行间距 */
            align-content: flex-start;
            overflow: auto;
        }
        ::-webkit-scrollbar{
            display: none;
        }
        /* 图片方框大小 */
        section .content>div{
            height: 101px;
            width: 33.33%;
            text-align: center;
        }
        /* 调整图片大小 */
        section  .content>div img{
            width: 60px;
            height: 50px;
            margin-top: 11px;
        }
    </style>
</head>
<body>
    <header>
        <ul>
            <li>热门推荐</li>
            <li>手机数码</li>
            <li>京东超市</li>
            <li>家用电器</li>
            <li>电脑办公</li>
            <li>玩具乐器</li>
            <li>家具厨具</li>
            <li>男装</li>
            <li>女装</li>
        </ul> </header>
    <section>
        <ul>
            <li>热门推荐</li>
            <li>手机数码</li>
            <li>京东超市</li>
            <li>家用电器</li>
            <li>电脑办公</li>
            <li>玩具乐器</li>
            <li>家具厨具</li>
            <li>男装</li>
            <li>女装</li>
        </ul>
        <div class="content">
            <div>
                <img src="./京东首页/0.png" alt="">
                <p>空调</p>
            </div>
            <div>
                <img src="./京东首页/1.png" alt="">
                <p>冰箱</p>
            </div>
            <div>
                <img src="./京东首页/2.png" alt="">
                <p>电脑</p>
            </div>
            <div>
                <img src="./京东首页/0.png" alt="">
                <p>空调</p>
            </div>
            <div>
                <img src="./京东首页/1.png" alt="">
                <p>冰箱</p>
            </div>
            <div>
                <img src="./京东首页/2.png" alt="">
                <p>电脑</p>
            </div>
            <div>
                <img src="./京东首页/0.png" alt="">
                <p>空调</p>
            </div>
            <div>
                <img src="./京东首页/1.png" alt="">
                <p>冰箱</p>
            </div>
            <div>
                <img src="./京东首页/2.png" alt="">
                <p>电脑</p>
            </div>
        </div>
    </section>
    <footer></footer>
</body>
</html>

请添加图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值