jQuery仿京东手机版头部菜单

jQuery仿京东手机版头部菜单

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

淘建站为您提供更多_手机特效_导航菜单_手机_菜单,在此特别感谢您对我们的支持与厚爱!

查看演示

演示不了,点击反馈

加入收藏

下载 292 次

打赏作者

觉得不错,可打赏下作者

下载资源

免费共享

特别说明:本站资源来自网友发布分享,仅供学习与参考,请勿用于商业用途,若有侵权请联系删除(272966172@qq.com)。

头部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="http://www.sucaiq.com/" 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="http://www.sucaiq.com/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="http://www.sucaiq.com/js">
                <span class="shortcut-cart"></span>
                <strong>购物车</strong>
            </a>
        </li>
        <li class=" current" id="m_common_header_shortcut_h_home">
            <a href="http://www.sucaiq.com/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;
}

声明:本资料由淘建站会员提供,如转载注明来源,资料来源淘建站免费素材库:https://www.taojz.cn/texiao/713.html
jQuery仿京东手机版头部菜单 希望对你有帮助,感谢您的支持!
  • 基于htm5 canvas打开手机红包动画源码

    基于htm5 canvas打开手机红包动画源码

  • jQuery手机端遮罩层弹出菜单CSS3动画出现和消失代码

    jQuery手机端遮罩层弹出菜单CSS3动画出现和消失代码

  • 新年手机投票活动页面wap微信模板下载

    新年手机投票活动页面wap微信模板下载

  • 中通快递招聘手机场景应用HTML5场景特效

    中通快递招聘手机场景应用HTML5场景特效

  • 手机上下滑动翻页动画加音乐

    手机上下滑动翻页动画加音乐

  • 中国水墨风格的手机滑动翻页专题动画模板

    中国水墨风格的手机滑动翻页专题动画模板

  • html5仿手机天气预报app界面特效

    html5仿手机天气预报app界面特效

  • css3仿手机邮箱界面收件箱文件打开动画特效

    css3仿手机邮箱界面收件箱文件打开动画特效

  • 手机页面,电脑页面可共用(替换图片即可)

    手机页面,电脑页面可共用(替换图片即可)

  • html5手机端果冻弹性菜单动画效果代码

    html5手机端果冻弹性菜单动画效果代码

  • jquery.superfish.js导航菜单插件制作无限极菜单

    jquery.superfish.js导航菜单插件制作无限极菜单

  • html5页面倾斜打开侧边菜单动画特效

    html5页面倾斜打开侧边菜单动画特效

  • 留言(0)
    头像
     阿里云限量代金券,戳我领取
    1 2