jQuery仿京东手机版头部菜单

jQuery仿京东手机版头部菜单

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

    赞助会员

这个模板头部是仿照京东商品详情的http://item.m.jd.com/product/1019570492.html,顶部右侧的图标可点击,会出现栏目菜单按钮,再次点击会隐藏。代码很简单,需要的朋友直接引用css文件加一个js收缩方法。
jQuery仿京东手机版头部菜单
分类:手机特效 > 导航菜单 难易:初级

头部html

<header class="jd-header">
    <div class="jd-header-new-bar">
        <div class="jd-header-icon-back" id="m_common_header_goback"><span></span></div>
        <!--           <div class="jd-header-title">商品</div>-->
        <ul id="header-tabs" class="jd-header-title">
            <li class="header-tab-item J_ping">
                <p id="detailView" class="header-tab-title header-tab-selected">商品</p>
            </li>
            <li id="detailInfo" class="header-tab-item J_ping">
                <p class="header-tab-title">详情</p>
            </li>
            <li id="pingjia" class="header-tab-item J_ping">
                <p class="header-tab-title">评价</p>
            </li>
        </ul>
        <div class="jd-header-icon-shortcut J_ping" id="m_common_header_jdkey" onclick="showHeadMenus()"><span></span></div>
        <div class="header-bar-border"></div>
    </div>
    <ul class="jd-header-shortcut" id="m_common_header_shortcut">
        <li id="m_common_header_shortcut_m_index">
            <a href="https://jy.tp.yuanmeng.life/" class="J_ping">
                <span class="shortcut-home"></span>
                <strong>首页</strong>
            </a>
        </li>
        <li id="m_common_header_shortcut_category_search" class="J_ping">
            <a href="https://jy.tp.yuanmeng.life/templates">
                <span class="shortcut-categories"></span>
                <strong>分类搜索</strong>
            </a>
        </li>
        <li id="m_common_header_shortcut_p_cart" class="J_ping">
            <a id="html5_cart" href="https://jy.tp.yuanmeng.life/js">
                <span class="shortcut-cart"></span>
                <strong>购物车</strong>
            </a>
        </li>
        <li class=" current" id="m_common_header_shortcut_h_home">
            <a href="https://jy.tp.yuanmeng.life/sites"class="J_ping">
                <span class="shortcut-my-account"></span>
                <strong>我的京东</strong>
            </a>
        </li>
    </ul>
</header>

CSS

.jd-header, .jd-header a {
    color: #252525;
    font-family: "PingHei","Lucida Grande","Lucida Sans Unicode","STHeiti","Helvetica","Arial","Verdana","sans-serif";
    font-size: 16px;
    text-decoration: none;
}
.jd-header-icon-back span, .jd-header-icon-shortcut span, .jd-header-icon-cancel span, .jd-header-icon-logo span, .jd-header-shortcut span, .jd-header-icon-category span, .jd-header-icon-search span, .jd-header-icon-close::after, .jd-auto-complete-list li::before, .jd-footer-platforms li a::before, .jd-footer-platforms li a.badge::after, .jd-search-tab li.sort-by-integrative a::after, .jd-search-tab li.sort-by-integrative.active a::after, .jd-search-tab li.sort-by-price a::after, .jd-search-tab li.sort-by-price.active a.arrow-down::after, .jd-search-tab li.sort-by-price.active a.arrow-up::after, .sidebar-categories .arrow, .sidebar-categories li li.checked .tick, .sidebar-btn-location::after, .supplier-arrow-right, .landing-keywords a::before, .hot-search-bar span i::before {
    background:  url("../images/jd-sprites.png?v=12") no-repeat scroll 0 0 / 200px 200px;
    display: block;
}
.jd-header {
    color: #252525;
    margin: 0;
    min-height: 44px;
    padding: 0;
    text-decoration: none;
    width: 100%;
}
.jd-header-new-bar {
    background: #efefef url("../images/header-bg.png?v=2") repeat-x scroll 0 0 / 100% 44px;
    min-height: 44px;
    position: relative;
    width: 100%;
    z-index: 20;
}

.jd-header-icon-back, .jd-header-icon-logo {
    height: 44px;
    position: absolute;
    width: 40px;
}

.jd-header-icon-back span, .jd-header-icon-shortcut span, .jd-header-icon-cancel span, .jd-header-icon-search span {
    overflow: hidden;
    text-indent: -100px;
}

.jd-header-icon-back span {
    background-position: -20px 0;
    height: 20px;
    margin: 12px 0 0 10px;
    width: 20px;
}
#header-tabs {
    margin: 0 80px;
    overflow: hidden;
}
.jd-header-title {
    font-size: 16px;
    height: 44px;
    line-height: 44px;
    margin: 0 50px;
    text-align: center;
}

.header-tab-item {
    float: left;
    overflow: hidden;
    text-align: center;
    white-space: nowrap;
    width:33.33%;
}
.header-tab-title {
    color: #222;
    font-size: 16px;
    line-height: 16px;
    padding-bottom: 14px;
    padding-top: 14px;
}
.header-tab-selected {
    border-bottom: 3px solid #222;
    font-size: 18px;
    line-height: 18px;
    padding-bottom: 11px;
    padding-top: 13px;
}

.jd-header-icon-shortcut, .jd-header-icon-category {
    height: 44px;
    overflow: hidden;
    position: absolute;
    right: 0;
    top: 0;
    width: 40px;
}

.jd-header-icon-shortcut span {
    background-position: -60px 0;
    height: 20px;
    margin: 12px 10px 0;
    width: 20px;
}

.header-bar-border {
    border-bottom: 1px solid #bbb;
    border-image: url("../images/head_right_list.gif") 2 0 2 0 round round;
    border-width: 0 0 1px;
    margin-top: -1px;
}

.jd-header-shortcut {
    background: #404042 none repeat scroll 0 0;
    /*    display: table;*/
    height: 57px;
    width: 100%;
    display: none
}

.jd-header-shortcut li {
    display: table-cell;
    text-align: center;
    width: 25%;
}

.jd-header-shortcut a {
    border: 0 none;
    color: #fff;
}

.jd-header-shortcut span.shortcut-home {
    background-position: -30px -27px;
}
.jd-header-shortcut span {
    height: 30px;
    margin-top: 6px;
    width: 30px;
}
.jd-header-shortcut span, .jd-header-shortcut strong {
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    margin: 0 auto;
}

.jd-header-shortcut span, .jd-header-shortcut strong {
    color: #fff;
    display: block;
    font-size: 12px;
    font-weight: normal;
    line-height: 1;
    margin: 0 auto;
}

.jd-header-shortcut span.shortcut-categories {
    background-position: -60px -27px;
}

.jd-header-shortcut span.shortcut-cart {
    background-position: -90px -27px;
}

.jd-header-shortcut span.shortcut-my-account {
    background-position: -120px -27px;
}
.jd-header-shortcut span {
    height: 30px;
    margin-top: 6px;
    width: 30px;
}
相关内容推荐
资源求助发帖
查看更多发帖

*

回帖描述:

*

链接类型:

*

下载链接:

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

*

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

*

回帖描述:

*

链接类型:

*

阅读权限:

*

下载链接:

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

关注公众号

获取更多资讯

扫码进群(QQ)

与更多大牛交流沟通

0.450570s