最新下载
24小时阅读排行榜
- 1 抖音怎么设置多账号切换 抖音账号快速切换方法解析
- 2 JS中的async/await怎么用?有什么作用?
- 3 UC缓存m3u8转普通视频
- 4 WebStorm调试React应用的环境配置和技巧
- 5 word删除空白区域空白段落 word空白内容清理技巧
- 6 Python中如何处理异步Web请求?
- 7 Python中hashlib的作用 加密哈希模块hashlib的常用算法实现
- 8 学习通小组相册怎么创建 学习通小组相册创建步骤详解
- 9 Python中glob模块 文件路径匹配模块glob的通配符使用技巧
- 10 番茄畅听赚钱是真的吗 番茄畅听收益真实性揭秘
- 11 Python中如何计算三角形的面积?
- 12 怎么安装win7系统 windows7系统怎么安装详细步骤
- 13 度小满金融可靠吗利息高吗 度小满可靠性及利息双重分析
- 14 快速上手通灵义码使用的实用方法
- 15 美团外卖骑手兼职条件有哪些 如何快速通过审核
最新教程
-
- 麻省理工大佬Python课程
- 9401 2024-05-31
-
- Swoole5 Hyperf3 php8新版本协程框架讲说
- 11984 2024-05-13
-
- 【web前端】Node.js快速入门
- 7866 2024-04-26
-
- 国外Web开发全栈课程全集
- 7793 2024-04-24
-
- Go语言实战之 GraphQL
- 5596 2024-04-19
-
- 550W粉丝大佬手把手从零学JavaScript
- 6412 2024-04-18
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>jQuery+CSS3选择滑块按钮代码 </title>
<style>
.tab-menu{
margin-top: 20px;
height: 26px;
overflow: hidden;
position: relative;
border-radius: 20px;
}
ul{
padding: 0;
margin: 0;
list-style: none;
}
li{
height: 24px;
line-height: 24px;
float: left;
text-align: center;
position: relative;
font-size: 12px;
}
.tab-menu span{
margin: 4px;
display: inline-block;
height: 18px;
position: absolute;
left: 0;
top: 0;
border-radius: 20px;
transition: left .4s;
-webkit-transition: left .4s;
-moz-transition: left .4s;
}
li:hover{
cursor: pointer;
}
.tworow{
width: 160px;
background-color: rgba(224, 229, 232, 1);
}
.tworow span{
width: 72px;
background-color: rgba(0, 54, 80, 1);
}
.tworow .active{
color: white;
}
.tworow li{
width: 80px;
color:rgba(0, 54, 80, 1);
}
.eightrow li{
width: 50px;
color: white;
}
.eightrow .active{
color: #10aefc;
}
.eightrow{
width: 700px;
background: #10aefc;
}
.eightrow span{
width: 42px;
background: white;
}
</style>
</head>
<body>
<center>
<div class="tab-menu eightrow">
<span id="bg"></span>
<ul id="list">
<li class="active" type="1">24h</li>
<li type="2">48h</li>
<li type="3">72h</li>
<li type="4">96h</li>
<li type="5">120h</li>
<li type="6">144h</li>
<li type="7">168h</li>
<li type="8">192h</li>
<li type="9">216h</li>
<li type="10">240h</li>
<li type="11">264h</li>
<li type="12">288h</li>
<li type="13">312h</li>
<li type="14">336h</li>
</ul>
</div>
<div class="tab-menu tworow">
<span id="thirdbg"></span>
<ul id="hourlist">
<li class="active" type="1">24h</li>
<li type="2">48h</li>
</ul>
</div>
</center>
<script src="script/jquery.min.js"></script>
<script src="script/slide.js"></script>
<script>
new Slideicon($("#list"),{
index:0,
cover:$("#bg"),
callback:function (data) {
console.log(data)
}
});
new Slideicon($("#hourlist"),{
index:0,
cover:$("#thirdbg"),
callback:function (data) {
console.log(data)
}
});
</script>
<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
</div>
</body>
</html>
这是一个CSS3选择滑块按钮代码,需要的朋友可以直接下载使用,更多特效代码尽在PHP中文网。

