前端课程作业

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
         * {
            margin: 0;
            padding: 0;
        }

        li {
            list-style: none;
        }

        a {
            text-decoration: none;
        }
        input {
            outline: none;}
        .father{
            display:flex;
            flex-wrap: nowrap;
            width: 1000px;
            height: 1000px;
        flex-wrap: nowrap;
        
        
        }
         .father .son1{
            display: inline-block;}
            .father .lei ul li{
                display: inline-block;}
        .father .lei ul li a{
            color:#757575;
background-color: rgba(0,0,0,0);
        }
        .father .lei ul li a:hover{
            color: orange;
        }
        .father .sousuo span {
            display: inline-block;
            width: 223px;
            height: 48px;
            line-height: 48px;
            position: absolute;
            right: 51px;
            z-index: 1;
            padding: 0 10px;
        }
        .father .sousuo input {
            width: 245px;
            height: 40px;
            border: 1px solid #757575;
            border-radius: 5px;
            display: inline-block;
        }
        

.sebianlan{
    position: relative;
            margin-top: 20px;
}
.cebianlan .left{
    position: absolute;
            top: 0;
            left: 0;
}
.cebianlan .left ul
      {background-color: rgba(105, 101, 101, .6);
            width: 234px;
            height: 460px;
            font: 18px/1.5 Helvetica Neue, Helvetica, Arial, Microsoft Yahei, Hiragino Sans GB, Heiti SC, WenQuanYi Micro Hei, sans-serif;
            padding: 20px 0px;
        }
        .cebianlan .left ul li
       {display: flex;
            justify-content: space-between;
            padding: 0px 30px;}
            .left ul li a {
            display: inline-block;
            width: 234px;
            height: 42px;
            line-height: 42px;

            color: aliceblue;
        }

        .left ul li:hover {
                background-color: orange}

    </style>
</head>
<body>
    <div class="father">
        <div class="son1">
            <div class="logo">
                <img src="../logo-mi2.png" alt="" width="56px" height="56px"></div>
            <div class="lei">
                <ul>
                    <li><a href="#">Xiaomi手机</a></li>
                    <li><a href="#">Redmi手机</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="#">路由器</a></li>
                    <li><a href="#">服务中心</a></li>
                    <li><a href="#">社区</a></li>


                </ul>
            </div>
            <div class="sousuo">
                <input type="text">
                <span>搜索</span>
            </div>
        </div>
    </div>
    <div class="cebianlan">
        <img src="../0942f8338bc19a2cde9394479fc123c8 (1).webp"
            alt="">
        <div class="left">
            <ul>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
                <li>
                    <a href="#">电器商品</a>
                    <span>></span>
                </li>
            </ul>
        </div>
</body>
</html>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值