蝙蝠岛资源网 Design By www.hbtsch.com
本文实例讲述了jQuery实现滚动切换的tab选项卡效果代码。分享给大家供大家参考。具体如下:
这里介绍的jquery tab选项卡滚动动态切换代码,似乎很个性的网页选项卡,没有边框的修饰,但十分简约大方,选项卡菜单目前在各大网站很流行,做为前端设计者,能够得心应手的写出一个选项卡是很有必要的哦,希望本代码能为您带去一份参考资料。
先来看看运行效果截图:
在线演示地址如下:
http://demo.jb51.net/js/2015/jquery-scroll-cha-tab-nav-style-codes/
具体代码如下:
<!DOCTYPE html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>jquery tab选项卡动态切换</title>
<style>
* {
margin: 0;
padding: 0;
}
body {
font-family: helvetica, tahoma, Sans-serif;
font-size: 13px;
background: url(images/bgdemo1.jpg) repeat;
}
a {
text-decoration: none;
}
h2 {
font-family: Helvetica, tahoma, Sans-serif;
font-size: 25px;
font-weight: bold;
text-shadow: 0 1px 1px white;
}
p {
text-shadow: 0 1px 1px white;
}
#navbar {
margin: 20px 0 0 40px;
width: 650px;
font-weight: bold;
}
ul li{
display: inline-block;
}
ul li a {
float:left
position: relative;
display: block;
width: 150px;
text-align: center;
}
.active a{
padding: 28px 0 20px 0;
background: -webkit-gradient(linear, left top, left bottom, from(#db0000), to(#9b0000));
background: -moz-linear-gradient(top center, #db0000, #9b0000);
border: 1px solid #8d0000;
text-shadow: 0 1px 1px black;
-webkit-border-radius: 10px 10px 0 0;
-webkit-background-clip: padding-box;
-webkit-box-shadow: inset 0 0 1px #fd0000;
-moz-border-radius: 10px 10px 0 0;
-moz-background-clip: padding-box;
-moz-box-shadow: inset 0 0 1px #fd0000;
margin-left: -5px;
z-index: 2;
color: white;
text-shadow: 0 1px 1px black;
}
.active a:focus {
outline: none;
}
.inactive a:hover {
background: -webkit-gradient(linear, left bottom, left top, from(#eee), to(#ddd));
background: -moz-linear-gradient(top center, #ddd, #eee);
}
.inactive a {
color: #222;
text-shadow: 0 1px 1px white;
background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ddd));
background: -moz-linear-gradient(top center, #eee, #ddd);
-webkit-box-shadow: inset 0 0 5px white;
-moz-box-shadow: inset 0 0 5px white;
padding: 20px 0;
-webkit-box-shadow: inset 0 0 5px white;
-moz-box-shadow: inset 0 0 5px white;
border: 1px solid #ccc;
margin-left: -5px;
z-index: 1;
}
.inactive a:focus {
outline: none;
}
span.notification {;
position: absolute;
padding: 5px;
margin-top: -6px;
color: white;
min-width: 15px;
text-align: center;
border: 1px solid #000;
background: -webkit-gradient(linear, left top, left bottom, from(#2a2a2a), to(#222));
background: -moz-linear-gradient(top center, #2a2a2a, #222);
-webkit-box-shadow: inset 0 0 1px #333;
-moz-box-shadow: inset 0 0 1px #333;
text-shadow: 0 -1px 1px black;
-webkit-border-radius: 50px;
-moz-border-radius: 50px;
margin-left: 10px;
}
#slider {
width: 555px;
background: rgba(250,250,250,0.3);
padding: 30px 25px 30px 25px;
line-height: 25px;
margin-left: 35px;
}
.back {
font-weight: bold;
padding: 20px 0 30px 0;
line-height: 25px;
margin-left: 35px;
}
.back a, .back a:visited{
padding: 0 0 3px 0;
color: #000000;
border-bottom: 1px solid #ffffff;
}
.back a:hover, .back a:visited:hover{
padding: 0 0 3px 0;
color: #990000;
border-bottom: 1px solid #000000;
}
.back a:active{
padding: 0 0 3px 0;
color: #000000;
border-bottom: 4px solid #000000;
}
</style>
<script src="/UploadFiles/2021-04-02/jquery-1.6.2.min.js">
希望本文所述对大家的jquery程序设计有所帮助。
蝙蝠岛资源网 Design By www.hbtsch.com
广告合作:本站广告合作请联系QQ:858582 申请时备注:广告合作(否则不回)
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
蝙蝠岛资源网 Design By www.hbtsch.com
暂无jQuery实现滚动切换的tab选项卡效果代码的评论...
P70系列延期,华为新旗舰将在下月发布
3月20日消息,近期博主@数码闲聊站 透露,原定三月份发布的华为新旗舰P70系列延期发布,预计4月份上市。
而博主@定焦数码 爆料,华为的P70系列在定位上已经超过了Mate60,成为了重要的旗舰系列之一。它肩负着重返影像领域顶尖的使命。那么这次P70会带来哪些令人惊艳的创新呢?
根据目前爆料的消息来看,华为P70系列将推出三个版本,其中P70和P70 Pro采用了三角形的摄像头模组设计,而P70 Art则采用了与上一代P60 Art相似的不规则形状设计。这样的外观是否好看见仁见智,但辨识度绝对拉满。
更新日志
2025年11月06日
2025年11月06日
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]
