帮助中心
获取牛币
联系我们
关于我们
版权声明
素材牛首页
微博登录
QQ登录
微信扫码登录
注册
登录
新浪微博
QQ登陆
微信登录
热门搜索:
小程序
支付
Java
后台模板
上传
商城模板
jQuery
手机
Thinkphp
微信
Vue.js
首 页
网页特效
整站源码
PHP实例
网站模版
工具箱
常用代码
论坛
游戏源码
资源分享
当前位置:
首页
»
精选常用代码
» jQuery手机微信底部菜单代码
jQuery手机微信底部菜单代码
浏览:692次
-
评论:0次
-
发布时间:2017-03-13
Html
Css
Js
首页
第二个菜单
二、第一个
二、第二个
第三个菜单
三、第一个
三、第二个
三、第三个
html,body,p,h1,h2,h3,h4,h5,h6,form,input,textarea,select,button,fieldset,legend,img,ul,ol,li,dl,dt,dd,th,td,pre,blockquote{margin:0;padding:0} html{height:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-webkit-font-smoothing:antialiased} body{background: #f0f0f0;color:#000;} body,button,input,select,textarea,h2,h3,h4,h5,h6{font:14px 'Hiragino Sans GB', 'Microsoft Yahei', '微软雅黑', '宋体', \5b8b\4f53, Tahoma, Arial} img,fieldset{border:0;vertical-align:middle} input{padding:0;margin:0;outline:none;} a{text-decoration:none;color:#4c4c4c;} a:hover{text-decoration:none;} ul,li,ol{list-style:none} img{max-width:100%;} .clear{clear:both;height:0;line-height:0;font-size:0;visibility:hidden;overflow:hidden} .clearfix:after{visibility: hidden;display: block;font-size: 0;content: " ";clear: both;height: 0;zoom:1;} .l{float:left;}.r{float:right;} /*reset样式重置*/ .btn3{position:fixed; z-index:3; bottom:0px; border-top:1px solid #b3b3b3; background:#e6e6e6; width:100%; text-align:center; box-sizing:border-box; -webkit-box-sizing:border-box;} .menu{position:relative; float:left; width:33.33%; height:50px; line-height:50px; background:#fff; border-right:1px solid #ebebeb; box-sizing:border-box; -webkit-box-sizing:border-box;} .menu:last-child{border-right:none;} .new-sub{position:absolute; bottom:60px; z-index:10; width:100%; padding: 0px 10px; background: #fff; box-sizing:border-box; -webkit-box-sizing:border-box; border: 1px solid #EEEEEE; border-radius: 5px; display:none;} .new-sub li{width: 100%; background:#fff; float:none; box-sizing:border-box; -webkit-box-sizing:border-box; border-top:1px solid #f2f2f2;} .new-sub li a{display:block; height:50px; line-height:50px; text-align:left; background:#fff; color:#333; border:none; text-align:center; font-size:16px;} .sanjiao{position:absolute;bottom:5px;right:5px;width:0;height:0;border:5px solid transparent;border-right:5px solid #000;border-bottom:5px solid #000;opacity:.5;} .bt-name{font-size:16px;color:#000;} .bt-name a{display:block;font-size:16px;color:#000;} .new-sub .tiggle{ width:0px; height:0px; position:absolute; left:50%; margin-left:-10px; bottom:-9px; border-top:10px solid #EEEEEE; border-left:10px solid transparent; border-right:10px solid transparent; z-index:10; } .new-sub .innertiggle{ width:0px; height:0px; position:absolute; left:50%; margin-left:-9px; bottom:-8px; border-top:9px solid white; border-left:9px solid transparent; border-right:9px solid transparent; z-index:11; }
//弹出垂直菜单 $(".menu").click(function() { if ($(this).hasClass("cura")) { $(this).children(".new-sub").hide(); //当前菜单下的二级菜单隐藏 $(".menu").removeClass("cura"); //同一级的菜单项 } else { $(".menu").removeClass("cura"); //移除所有的样式 $(this).addClass("cura"); //给当前菜单添加特定样式 $(".menu").children(".new-sub").slideUp("fast"); //隐藏所有的二级菜单 $(this).children(".new-sub").slideDown("fast"); //展示当前的二级菜单 } });
↑上面代码改变,会自动显示代码结果
jQuery调用版本:
1.11.3
<!doctype html><html><head><meta charset="utf-8"><title>jQuery手机微信底部菜单代码-www.sucainiu.com</title><script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script><style>
</style></head><body>
<script>
</script>
</body></html>
立即下载
收藏
积分说明:注册即送10牛币,每日签到可获得5牛币,成为VIP会员可永久免牛币下载!
充值积分
充值会员
更多说明»
代码描述:jQuery手机微信底部菜单代码
angualrjs跨域请求百度接口
jQuery字体向上滚动
讨论这个常用代码(0)
回答他人问题或分享心得会奖励牛币
〒_〒 居然一个评论都没有……
文明上网,理性发言! 😉 阿里云幸运券,
戳我领取
发表评论
提交回复
我的积分余额:
0
已下载次数:
692
所需牛币:
5
开始下载
牛币获取:
签到、评论、充值
» 在线充值
(10牛币=1元)
成为VIP可永久免积分下载全部常用代码
» 查看详情
VIP
客服
签到
充值