商品图片代码

DOCTYPE html>
<html lang="zw">
    <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>
            .root-div{
                width: 250px;
                height: 400px;
                float: left;
                margin-left: 20px;
                margin-top: 20px;
                /* border: 1px solid red; */
            }
            .image-parent,img{
                width: 250px;
                height: 250px;
            }
            .image-parent{
                position: relative;
            }
            .image-child{
                width:100%;
                position: absolute;
                bottom: 0px;
                display: none;
            }
            .image-child > div{
                width: 125px;
                float: left;
                background-color: orange;
                text-align: center;
                color: white;
            }
            .image-child > div:first-child{
                width: 124px;
                border-right:1px solid white;
            }
            
            .image-parent:hover > .image-child{
                display: block;
            }            
            .price{
                margin-top: 8px;
            }
            .price > span:first-child{
                color: orange;
                font-size: 20px;
                font-weight:bold;
            }
            .price > span:nth-child(2){
                background-color: orange;
                color: white;
                padding: 0% 2px;
            }
            .price > span:last-child{
                font-size: 15px;
                color: gray;
                float: right;
                margin-right: 10px;
                margin-top: 3px;
            }
            .brief{
                margin-top: 8px;
            }
            .brief > span{
                /* border: 2px solid red; */
                font-size: 15px;
            }
            .shop{
                margin-top: 8px;
            }            
            .shop > span{
                color: gray;
                font-size: 15px;        
            }
            .shop > span:last-child{
                float: right;
                margin-right: 10px;
            }
            .logo{
                margin-top: 5px;
            }
            .logo > span{
                /* border: 2px solid blue; */
            }
            .logo > span > img{
                width: 30px;
                height: 30px;
            }
            .logo > span:last-child{
                /* border: 2px solid red; */
                float: right;
                margin-right: 10px;
            }
        </style>
    </head>
    <body>
        <div class="root-div">
            <div class="image-parent">
                <img src="你要放图片" alt="">
                <div class="image-child">
                    <div>找同款</div>
                    <div>找相似</div>
                </div>
            </div>
            <div class="price">
                <span>¥输入你要的价格</span>
                <span>包邮</span>
                <span>10万+人付款</span>
            </div>
            <div class="brief">
                <span>日系加绒卫衣男冬款衣服<font style="color: orange;">衣服</font>情侣</span>
            </div>
            <div class="shop">
                <span>某某旗舰店</span>
                <span>
                    <span>广东</span>
                    <span>深圳</span>
                </span>
            </div>
            <div class="logo">
                <span><img src="../img/双11.webp" alt=""></span>
                <span><img src="../img/淘宝.webp" alt=""></span>
                <span id="bo"><img src="../img/淘宝.webp" alt=""></span>
            </div>
        </div>        
    </body>
</html

 

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值