JQuery 选项卡参考 样式及代码说明
2015-04-20 11:58
225 查看
.tabs { //ulheight: 32px;border-bottom: 1px solid #999;border-left: 1px solid #999;width: 100%;}.tabs li { //ul liheight: 31px;line-height: 31px;float: left;border: 1px solid #999;border-left: none;margin-bottom: -1px; //针对ul外边框向上移动1像素background: #e0e0e0;}.tabs li:hover{background:#fff;border-bottom:1px solid #fff;}JQuery 代码
index() //获取当前选中的索引
siblings() //对同级做响应的处理
eq() //找到与其相等的索引 执行操作
$(this).addClass("whitebg").siblings().removeClass("whitebg");$(".tabbox").hide().eq(liIdx).show();
相关文章推荐
- jQuery多项选项卡的实现思路附样式及代码
- jQuery多项选项卡的实现思路附样式及代码
- Jquery实现的table最后一行添加样式的代码
- jQuery实现仿腾讯迷你首页选项卡效果代码
- jQuery支持添加事件的日历特效代码分享(3种样式)
- 实用的Jquery选项卡TAB示例代码
- jQuery实现滚动切换的tab选项卡效果代码
- 文本有关的样式和jQuery求对象的高宽问题分别说明
- JavaScript用JQuery呼叫Server端方法实现代码与参考语法
- Podofo文档——代码样式说明
- 基于jquery仿360网站图片选项卡切换代码
- jquery.idTabs 选项卡使用示例代码
- 基于jQuery实现的仿百度首页滑动选项卡效果代码
- 蓝色理想网选项卡样式的导航条代码
- 共享下改进后的combox,页面原型参考dojo的,比网上jQuery的那些combox功能强,代码更小
- jquery 经典选项卡代码
- 基于jquery的淡入淡出选项卡效果代码
- jQuery右侧选项卡焦点图片轮播特效代码分享
- 基于JQuery1.4 Tab选项卡 一行代码轻松搞定
- 基于jQuery虾米音乐播放器样式代码