WEB第二次作业

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <title></title>
        <style>
            *{
                margin: 0;
                padding: 0;
            }
            #menu{
                background-color: blue;
                width: 100%;
                height: 40px;
            }
            .item{
                float: left;
                width: 100px;
                height: 40px;
                line-height: 40px;
                text-align: center;
                position: relative;
                color: lightblue;
            }
            .item:hover{
                background-color: red;
                color: gold;
            }
            #container{
                width: 720px;
                margin: auto;
            }
            .down_menu>div{
                background-color: blue;
                color: white;
            }
            .down_menu{
                background-color: gold;
                display: none;
                position: absolute;
            }
            .item:hover>.down_menu{
                display: block;
                width: 100px;
                height: 40px;
                left: 0px;
                top: 40px;
                
            }
        </style>
    </head>
    <body>
        <div id="menu">
            <div id="container">
                <div class="item">我的京东
                    <div class="down_menu">
                        <div>我的浏览</div>
                        <div>我的优惠价</div>
                    </div>
                </div>
                <div class="item">购物车
                    <div class="down_menu">
                        <div>选取商品结算</div>
                        <div>清空购物车</div>
                        <div>删除所选的商品</div>
                    </div>
                </div>
                <div class="item">我的收藏夹
                    <div class="down_menu">
                        <div>收藏的商品</div>
                        <div>收藏的店铺</div>
                    </div>
                </div>
            </div>
            
        </div>
    </body>
</html>

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值