第21天笔记

头部练习

<!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="https://at.alicdn.com/t/c/font_3911396_qp65090s3a.css">

    <link rel="stylesheet" href="../css/reset.css">

    <link rel="stylesheet" href="../css/index.css">

</head>

<body>

    <div class="header">

        <div class="inner">

            <div class="table">

                <div class="tabletop">

                    <div class="tabletopa">

                        <p>中国大陆</p>

                    </div>

                    <div class="tabletopb">

                        <img src="../img/中国.png" alt="">

                    </div>

                </div>

                <div class="nav">

                    <ul class="nav1">

                        <li><a href="#"><span class="iconfont icon-fenlei"></span></a></li>

                        <li class="nav2"><a href="#">首页</a></li>

                        <li><a href="#">清洗套装</a></li>

                        <li><a href="#">深度补水</a></li>

                        <li><a href="#">护肤系列</a></li>

                        <li><a href="#">社区.服务</a></li>

                        <li><a href="#"><span class="lia">登录/注册</span></a></li>

                        <li><a href="#"><span class="iconfont icon-gouwudai-jian"></span></a></li>

                    </ul>

                </div>

            </div>

        </div>

引入格式

@charset "utf-8";

.inner{

    width: 1630px;

    margin: 0 auto;

}

.header{

    width: 100%;

    height: 134px;

}

.table{

    width: 1185px;

    height: 112px;

    margin: 0 auto;

}

.tabletopa {

    width: 57px;

    height: 14px;

    font-size: 14px;

}

.tabletopb {

    width: 28px;

    height: 19px;

}

.tabletopb img{

    margin-top: 2px;

    margin-left: 2px;

}

.tabletop{

    width: 85px;

    height: 19px;

    line-height: 19px;

    display: flex;

    justify-content: space-between;

    align-items: center;

}

.nav1{

    width: 1185px;

    height: 80px;

    display: flex;

    justify-content: space-between;

    align-content: center;

    line-height: 80px;

}

.nav1 li:hover a{

    color: #fc708b;

}

.iconfont{

    font-size: 25px;

}

.nav1 a{

    color: black;

    font-size: 18px;

}

.lia{

    color: #fc708b;

}

.nav2{

    height: 60px;

    display: block;

    border-bottom:4px solid  #fc708b;

   

   

}

.nav2 a{

    color: #fc708b;

}

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值