js 多层叠的TAB选项卡
2018-10-12 13:54
1046 查看
HTML:多个导航tag加一个放置默认内容div
脚本:以数组的形式给出每个导航对应的html
脚本:以数组的形式给出每个导航对应的html
多层叠TAB选项卡 .nonstop { width:168px; font-size:12px;margin:auto; border:1px solid #cdcdcd; padding:2px; overflow:hidden; } .nonstop span { float:left;_display:inline; cursor:pointer; width:22px; height:14px; background:#cdcdcd url(./img/button.gif) no-repeat -175px top; font-size:10px; line-height:14px; margin:2px 0 0 2px; display:inline; text-align:center; } .nonstop span:hover { background:gray; font-weight:bold } .nonstop div { height:300px; clear:both; border:1px solid #cdcdcd; border-width:2px 1px; margin-left:2px; overflow:hidden; } .nonstop div a { float:left; width:80px; height:40px; background:white; text-align:center; line-height:40px; padding-top:8px; margin:1px 0 0 1px; } .nonstop div a img { border:0; } .nonstop span.hot { border:1px solid red; width:20px; color:white; height:15px; background:red url(./img/button.gif) no-repeat -175px -14px; font-weight:bold; border-bottom:none; } 一个多层叠的TAB选项卡,自适应宽度(自行更改nonstop的width测试效果)。 HTML:多个导航tag加一个放置默认内容div 脚本:以数组的形式给出每个导航对应的html ABCDEFG HI JMLNO PSTUYZ! 这里放一些默认内容 11111111
您可能感兴趣的文章:
相关文章推荐
- js 多层叠的TAB选项卡
- 多层选项卡嵌套 , js选项卡tab , jquery选项卡
- js+css实现的圆角边框TAB选项卡滑动门代码分享(2款)
- 【自我作业】JS+CSS tab选项卡
- js实现类似菜单风格的TAB选项卡效果代码
- js实现仿百度风云榜可重复多次调用的TAB切换选项卡效果
- JS实现不规则TAB选项卡效果代码
- js tab 选项卡
- 【js基础】Tab选项卡切换效果实现
- JS实现横向与竖向两个选项卡Tab联动的方法
- jquery插件tytabs.jquery.min.js实现渐变TAB选项卡效果
- 原生js实现tab选项卡切换
- js实现类似菜单风格的TAB选项卡效果代码
- 使用css和js实现Tab选项卡
- js实现黑色简易的滑动门网页tab选项卡效果
- js基于面向对象实现网页TAB选项卡菜单效果代码
- JS+CSS仿网易的选项卡TAB标签样式-导航菜单类
- 【JS每日练习】JS写的tab选项卡
- 纯JS实现的简单tab选项卡切换效果
- JS基于myFocus库实现各种功能的tab选项卡切换效果