其他分享
首页 > 其他分享> > 黑马前端p332 品优购 lifeservise 减图标制作

黑马前端p332 品优购 lifeservise 减图标制作

作者:互联网

黑马前端p332 品优购 lifeservise 减图标制作

<div class="lifeservice">
                    <ul>
                        <li class="li-discount">
                            <i></i><p>机票</p>
                            <div class="div-discount">
                                <i class="discount">减
                                    <span></span>
                                </i>
                            </div>
                        </li>
                    </ul>
                </div>
.lifeservice .li-discount{
    position: relative;
}
.div-discount{
    position: absolute;
    top: 0px;
    right: 0px;
}
.lifeservice .li-discount .div-discount .discount{
    margin-top: 0px;
    background: none;
    position: relative;
    top: -4px;
    width: 12px;
    height: 10px;
    background-color: #589d5a;
    color: #fff;
    line-height: 10px;
}

.div-discount .discount span{
    position: absolute;
    bottom: -7px;
    left: 0px;
    width: 0;
    height: 0;
    line-height: 0;
    font-size: 0px;
    border: 6px solid #589d5a;
    border-bottom-color: transparent;
    z-index: -1;
}

标签:discount,color,top,height,p332,lifeservise,position,0px,品优购
来源: https://blog.csdn.net/Jing0921/article/details/119317931