xx闪购——商品信息

1.把图片放在 cc/img 的文件夹里:D:\cc\img

2.把图片显示出来:

 

<ul class="clearfix">
                    <li>
                        <div class="bg"><img src="img/1.png" alt=""></div>
                        <div class="info"></div>
                    </li>
                    
                </ul>
/*.clearfix{
        overflow:auto;
        _height:1%
    }*/

 

.clearfix{
        overflow:auto;
        _height:1%
    }

2.1.

.seckill-goods .bg img{
    height: 190px;
}
.seckill-goods .info {
    margin-left: 210px;
    width: 190px;
    height: 190px;
    border: 1px solid black;
}
.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
   .clearfix{
        overflow:auto;
        _height:1%
    }

2.2.

<ul class="clearfix">
                    <li>
                        <div class="bg"><img src="img/1.png" alt=""></div>
                        <div class="info">
                        <a href="">Redmi充电宝 白色10000mAh大电量 </a>
                        <p>29.5元 59元</p>
                        <a href="">登录后抢购</a>
                        <p>已有10229人设置提醒</p>
                    </div>
                    </li>
                </ul>

 

2.3.调整文字的样式:

 

.seckill-goods .info .name {
    font-size: 16px;
    color: #333;
    height: 16px;
    line-height: 16px;
    /*不换行,显示在一行*/
    display: block;
    /*去掉换行*/
    white-space: nowrap;
}

.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
   .clearfix{
        overflow:auto;
        _height:1%
    }

2.4.超出的部分隐藏,变点点:

.seckill-goods .info .name {
    font-size: 16px;
    color: #333;
    height: 16px;
    line-height: 16px;
    /*不换行,显示在一行*/
    display: block;
    /*去掉换行*/
    white-space: nowrap;
    /*超出的隐藏*/
    overflow: hidden;
    /*变成点点,加文字基本属性*/
    text-overflow: ellipsis;
}

.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
.clearfix{
    overflow:auto;
    _height:1%
}

 

2.5.大电量字体的样式:

<ul class="clearfix">
                    <li>
                        <div class="bg"><img src="img/1.png" alt=""></div>
                        <div class="info">
                        <a href="" class="name">Redmi充电宝 白色 10000mAh </a>
                        <p class="tips">10000mAh 大电量<p>
                        <p>29.5元 59元</p>
                        <a href="">登录后抢购</a>
                        <p>已有10229人设置提醒</p>
                    </div>
                    </li>
                </ul>
.seckill-goods .info .tips {
    font-size: 12px;
    line-height: 12px;
    color: #b0b0b0;
}

.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
.clearfix{
    overflow:auto;
    _height:1%
}

 

2.7.价格字体的样式:

<ul class="clearfix">
                    <li>
                        <div class="bg"><img src="img/1.png" alt=""></div>
                        <div class="info">
                        <a href="" class="name">Redmi充电宝 白色 10000mAh </a>
                        <p class="tips">10000mAh 大电量<p>
                        <p class="price"> 29.5元 <del>59元</del></p>
                        <a href="">登录后抢购</a>
                        <p>已有10229人设置提醒</p>
                    </div>
                    </li>
                </ul>
.seckill-goods .info .tips {
    font-size: 12px;
    line-height: 12px;
    color: #b0b0b0;
    margin-top: 10px;
}
.seckill-goods .info .price {
    font-size: 16px;
    line-height: 16px;
    color: #f1393a;
    margin-top: 14px;
}
.seckill-goods .info .price del {
    color: #999;
    font-size: 12px;
    line-height: 12px;
    margin-left: 10px;
}
.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
.clearfix{
    overflow:auto;
    _height:1%
}

2.9.

<ul class="clearfix">
                    <li>
                        <div class="bg"><img src="img/1.png" alt=""></div>
                        <div class="info">
                        <a href="" class="name">Redmi充电宝 白色 10000mAh </a>
                        <p class="tips">10000mAh 大电量<p>
                        <p class="price"> 29.5元 <del>59元</del></p>
                        <a href="" class="btn">登录后抢购</a>
                        <p>已有10229人设置提醒</p>
                    </div>
                    </li>

                </ul>
.seckill-goods .info {
    margin-left: 210px;
    width: 190px;
    height: 190px;
    /*border: 1px solid black;*/
    /*通过调整内边距的大小*/
    padding-top: 30px;
}
.seckill-goods .info .name {
    font-size: 16px;
    color: #333;
    height: 16px;
    line-height: 16px;
    /*不换行,显示在一行*/
    display: block;
    /*去掉换行*/
    white-space: nowrap;
    /*超出的隐藏*/
    overflow: hidden;
    /*变成点点,加文字基本属性*/
    text-overflow: ellipsis;
}
.seckill-goods .info .tips {
    font-size: 12px;
    line-height: 12px;
    color: #b0b0b0;
    margin-top: 10px;
}
.seckill-goods .info .price {
    font-size: 16px;
    line-height: 16px;
    color: #f1393a;
    margin-top: 14px;
}
.seckill-goods .info .price del {
    color: #999;
    font-size: 12px;
    line-height: 12px;
    margin-left: 10px;
}
.seckill-goods .info .btn {
    display: inline-block;
    width: 118px;
    height: 28px;
    font-size: 14px;
    color: #fff;
    line-height: 28px;
    text-align: center;
    background-color: #f1393a;
}
.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
.clearfix{
    overflow:auto;
    _height:1%
}

 

2.1.0.最终样式

 

<ul class="clearfix">
                    <li>
                        <div class="bg"><img src="img/1.png" alt=""></div>
                        <div class="info">
                        <a href="" class="name">Redmi充电宝 白色 10000mAh </a>
                        <p class="tips">10000mAh 大电量<p>
                        <p class="price"> 29.5元 <del>59元</del></p>
                        <a href="" class="btn">登录后抢购</a>
                        <p class="person" >已有10229人设置提醒</p>
                    </div>
                    </li>
                </ul>
.seckill-goods .bg {
    float: left;
    width: 190px;
    height: 190px;
    /*border: 1px solid red;*/
}
.seckill-goods .bg img{
    height: 190px;
}
.seckill-goods .info {
    margin-left: 210px;
    width: 190px;
    height: 190px;
    /*border: 1px solid black;*/
    /*通过调整内边距的大小*/
    padding-top: 30px;
}
.seckill-goods .info .name {
    font-size: 16px;
    color: #333;
    height: 16px;
    line-height: 16px;
    /*不换行,显示在一行*/
    display: block;
    /*去掉换行*/
    white-space: nowrap;
    /*超出的隐藏*/
    overflow: hidden;
    /*变成点点,加文字基本属性*/
    text-overflow: ellipsis;
}
.seckill-goods .info .tips {
    font-size: 12px;
    line-height: 12px;
    color: #b0b0b0;
    margin-top: 10px;
}
.seckill-goods .info .price {
    font-size: 16px;
    line-height: 16px;
    color: #f1393a;
    margin-top: 14px;
    margin-bottom: 0;
}
.seckill-goods .info .price del {
    color: #999;
    font-size: 12px;
    line-height: 12px;
    margin-left: 10px;
}
.seckill-goods .info .btn {
    display: inline-block;
    width: 118px;
    height: 28px;
    font-size: 14px;
    color: #fff;
    line-height: 28px;
    text-align: center;
    background-color: #f1393a;
    border: 1px solid #f1393a;
    margin-top: 19px;
}
.seckill-goods .info .person {
    font-size: 12px;
    line-height: 12px;
    color: #999;
    margin-top: 10px;
}
.seckill-notice {
    font-size: 12px;
    color: #999;
    margin-top: 100px;
    /*距底边的距离*/
    padding-bottom: 35px;
}
.clearfix{
    overflow:auto;
    _height:1%
}

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值