小米商城广告部分

 <div class="banner">
        <div class="banner-wrap">
            <div class="banner-left">
                <ul>
                    <li>
                        <a href="">
                            <img src="./image/小图标1.png" alt="">
                            <p>保障服务</p>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./image/小图标2.png" alt="">
                            <p>企业团购</p>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./image/小图标3.png" alt="">
                            <p>F码通道</p>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./image/小图标4.png" alt="">
                            <p>米粉卡</p>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./image/小图标5.png" alt="">
                            <p>以旧换新</p>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="./image/小图标6.png" alt="">
                            <p>话费充值</p>
                        </a>
                    </li>
                </ul>
            </div>
            <div class="banner-right">
                <a href=""><img src="./image/底部1.jpg" alt=""></a>
            </div>
            <div class="banner-right">
                <a href=""><img src="./image/底部2.jpg" alt=""></a>
            </div>
            <div class="banner-right">
                <a href=""><img src="./image/底部3.jpg" alt=""></a>
            </div>
        </div>
    </div>

css部分

.banner{
    width: 100%;
    height: 170px;
    margin: 14px 0 26px;
}
.banner-wrap{
    width: 1226px;
    height: 170px;
    margin: 0 auto;
    /* background-color: skyblue; */
}
.banner-left{
    float: left;
    width: 234px;
    height: 170px;
    padding: 3px;
    box-sizing: border-box;
    background-color: #5f5750;
}
.banner-right{
    float: left;
    margin-left: 14.6px;
    width: 316px;
    height: 170px;
    /* background-color: pink; */

}
.banner-right img{
    width: 316px;
    height: 170px;
}
.banner-right img:hover{
    box-shadow: 0 15px 30px rgba(0, 0, 0, .3);
}
.banner-left>ul li{
    position: relative;
    float: left;
    width: 76px;
    height: 82px;
    margin-bottom: 4px;
    text-align: center;
    padding: 19px 0;
    box-sizing: border-box;
    transition: all .2s;
}
.banner-left>ul>li>a>img{
    width: 24px;
    height: 24px;
    opacity: .5; 
}
.banner-left>ul>li>a>p{
    margin-top: 5px;
}
.banner-left>ul>li:hover>a>img{
    opacity: 1;
}  
.banner-left>ul>li>a{
    font-size: 12px;
    color: #b0b0b0;
}
.banner-left>ul>li:hover>a{
    color: #fff;
}
/* 横线 */
.banner-left>ul li:not(li:last-child,li:nth-child(5),li:nth-child(4)):after{
    position: absolute;
    bottom: 0;
    left: 6px;
    content:"" ;
    height: 1px;
    width: 64px;
    background-color:#b0b0b0;
}
/* 竖线 */
.banner-left>ul li:not(li:nth-child(3),li:nth-child(6)):before{
    position: absolute;
    top: 6px;
    right: 0;
    content: "";
    width: 1px;
    height: 70px;
    background-color: #b0b0b0;
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值