css仿京东底部菜单按钮悬浮层

css仿京东底部菜单按钮悬浮层

添加时间:2021-03-04 09:09:11
站长推荐丨赞助论坛,可获取海量资源终身免费下载权限奥!
举报 举报
收藏
预览
附件 附件
  • 模板类型模板类型:导航菜单
  • 模板颜色模板颜色:入门级
  • 下载积分下载积分:28 米粒
  • 下载权限下载权限:

    赞助会员

这个底部悬浮层菜单是仿照京东商品详情的http://item.m.jd.com/product/1451400.html,菜单按钮有关注、加入购物车、购物车和立即购买。#carNum里面可加入购物车数量,为空表示购物车里面没有商品。
css仿京东底部菜单按钮悬浮层
分类:手机特效 > 导航菜单 难易:入门级

底部菜单html

<div class="cart-concern-btm-fixed four-column" id="cart1" style="display: table;">
    <div class="concern-cart">
        <a  id="payAttention" class="love-heart-icn J_ping">
            <em  class="btm-act-attention"></em>
            <span>关注</span>
        </a>
        <a id="toCart" class="cart-car-icn">
            <em id="shoppingCart" class="btm-act-icn">
                <i id="carNum" class="order-numbers">3</i>
            </em>
            <span>购物车</span>
        </a>
    </div>
    <div class="action-list">
        <a id="add_cart" class="yellow-color" style="transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);"> 加入购物车 </a>
        <a id="directorder" class="red-color " style="transform-origin: 0px 0px 0px; opacity: 1; transform: scale(1, 1);">立即购买</a>
    </div>
</div>

底部悬浮导航样式

.cart-concern-btm-fixed {
    bottom: 0;
    height: 50px;
    left: 0;
    position: fixed;
    text-align: center;
    width: 100%;
    z-index: 10;
}

.four-column .concern-cart {
    width: 42%;
}
.concern-cart {
    background-color: rgba(0, 0, 0, 0.8);
}
.concern-cart, .action-list {
    float: left;
}

.concern-cart a {
    color: #d4d4d4;
    font-size: 10px;
}
.concern-cart a, .action-list a {
    width: 50%;
}
.concern-cart a, .action-list a {
    display: inline-block;
    float: left;
    height: 50px;
    line-height: 50px;
}

.focus-container {
    display: inline-block;
    text-align: center;
    width: 40px;
}

.focus-container .focus-icon {
    margin-bottom: -18px;
    text-align: center;
}

.focus-out {
    background-position: 0 0;
    display: inline-block;
    height: 19px;
    width: 21px;
}

.concern-cart a span {
    display: block;
    height: 18px;
    line-height: 13px;
    text-align: center;
}
.focus-info {
    color: #d4d4d4;
    font-size: 10px;
}
em.btm-act-icn {
    background: url("../images/sprits_btm_new.png") no-repeat scroll 0 0;
    display: block;
    height: 24px;
    margin: 8px auto 0;
    position: relative;
    width: 25px;
}
.cart-car-icn .btm-act-icn {
    background-position: 0 -23px;
    background-size: 50px 50px;
}

.order-numbers {
    background-color: white;
    border-radius: 8px;
    color: #f15353;
    display: inline-block;
    font-size: 8px;
    font-style: normal;
    line-height: 12px;
    padding: 0 5px;
    position: absolute;
    right: -10px;
    top: -5px;
}

.four-column .action-list {
    width: 58%;
}

.action-list a {
    color: #fff;
    font-size: 15px;
}
.yellow-color {
    background-color: #ffb03f;
}
.red-color {
    background-color: #f15353;
}
em.btm-act-attention {
    background:  url("../images/focus-icon.png") no-repeat scroll 0 0 / 100px 100px;
    display: inline-block;
    height: 19px;
    width: 21px;
    background-position: 0 0;
    margin:10.6px 0 2px
}
相关内容推荐
资源求助发帖
查看更多发帖

*

回帖描述:

*

链接类型:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
热点内容推荐
标题:css仿京东底部菜单按钮悬浮层

*

描述:
平均回复时间:3-10分钟
规则介绍:悬赏寻求论坛网友分享资源,站点对分享内容的准确性,合法性,版权等没有足够的监管能力。如果您发现资源不正确,无法使用,不符合法律法律等情况,您可以直接举报资源。站长将尽快核实您的举报,并根据情况,采取封号,退换米粒等处理。

*

回帖描述:

*

链接类型:

*

阅读权限:

*

下载链接:

密码:
发帖规则:回帖内容为会员之间的私信,普通网友无法查看。
免责声明:回帖中提供的链接内容仅供会员之间学习参考使用,获取内容后请在法律法规范围内使用。回帖提供的内容应符合法律法规要求,不得违反法律法律的要求。
站点权责:回帖内容如违反法律法规,站点有权封停账号使用权利。对用户举报的内容,站点有责任及时删除违规内容。
  • 背景波浪
  • 背景波浪
  • 波浪
  • 波浪
客服
在线咨询
周一 至 周日 9:00 ~ 22:00
QQ:1326974360
微信:juyoubuluo6688
客服热线
18205485173
工作日 9:00 ~ 18:00
微信扫码咨询
客户服务
欢迎咨询服务
咨询量较多时,请耐心等待
社群

关注公众号

获取更多资讯

扫码进群(QQ)

与更多大牛交流沟通

0.276768s