最新下载
24小时阅读排行榜
- 1 Html5如何实时更新_HTML5实现数据实时更新技术【更新】
- 2 C++如何测量程序运行时间_C++高精度计时器实现与性能分析
- 3 如何使用Golang实现协程安全的缓存系统_Golang缓存并发读写方案说明
- 4 MAUI Entry控件怎么自定义 MAUI输入框定制教程
- 5 如何在Golang中实现包版本锁定_保证项目稳定性和兼容性
- 6 Golang错误是否应该写入日志_Golang日志级别与错误分配
- 7 HTML如何实现顺序选择器_表单步骤设计指南【解析】
- 8 css字体在大屏和小屏差异过大怎么办_利用rem实现字号自适应
- 9 javascript中的递归是什么_如何避免栈溢出错误
- 10 如何用Airflow的PythonOperator处理XML文件
- 11 Blazor 组件生命周期有哪些
- 12 FinTS金融信息交换标准中的XML怎么用
- 13 php数组查看维度方法_php判断数组几维技巧详解【解析】
- 14 Azure Logic Apps如何处理和转换XML
- 15 C# Avalonia如何读写JSON文件 Avalonia配置文件操作
最新教程
-
- Node.js 教程
- 13905 2025-08-28
-
- CSS3 教程
- 1540077 2025-08-27
-
- Rust 教程
- 21598 2025-08-27
-
- Vue 教程
- 24132 2025-08-22
-
- PostgreSQL 教程
- 20877 2025-08-21
-
- Git 教程
- 8220 2025-08-21
<!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中文网。
