蝙蝠岛资源网 Design By www.hbtsch.com
本文实例讲述了jQuery实现MSN中文网滑动Tab菜单效果代码。分享给大家供大家参考。具体如下:
这是一款jQuery实现Msn中文网的滑动滑动门代码,利用jQuery实现的效果,代码很巧妙,就是利用一个绝对定位的层来实现移动效果,但是体验度大幅提升了。
运行效果截图如下:
在线演示地址如下:
http://demo.jb51.net/js/2015/jquery-f-msn-tab-menu-style-codes/
具体代码如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="gb2312" />
<meta http-equiv="Refresh" content="3600" />
<title>MSN中文网:时尚生活 白领门户</title>
<style>
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,button,textarea,p,blockquote,th,td{
margin: 0;
padding: 0;
}
ol,ul{
list-style: none;
}
.clearfix:after{
content: ".";
display: block;
height: 0;
clear: both;
visibility: hidden;
}
.clearfix{
display: inline-block;
}
/* Hides from IE-mac \*/
* html .clearfix{
height: 1%;
}
.clearfix{
display: block;
}
/* End hide from IE-mac */
body{
font-size: 12px;
font-family: "Microsoft Yahei" ,Tahoma, "SimSun";
color: #333;
background: #fff;
line-height: 1.5;
}
.main_l{
width: 513px;
position: relative;
float: left;
}
.main_title{
height: 28px;
overflow: hidden;
background: url(images/s3.png) 0 0 no-repeat;
float: left;
}
.main_title ul{
font-size: 14px;
}
.main_title ul li{
height: 23px;
line-height: 23px;
padding-left: 16px;
padding-right: 16px;
padding-top: 1px;
background: #f1f1f1;
border-top: #fff 3px solid;
border-left: #fff 1px solid;
border-right: #fff 1px solid;
float: left;
}
.main_title ul .on{
height: 22px;
line-height: 22px;
padding-left: 16px;
padding-right: 16px;
background: #fff;
border-top: #009ad9 4px solid;
border-left: #009ad9 1px solid;
border-right: #009ad9 1px solid;
border-bottom: #fff 1px solid;
}
.main_title ul .on a{
font-weight: 700;
}
.main_title span{
line-height: 24px;
padding-top: 4px;
padding-right: 10px;
float: right;
}
.main_l .main_title{
width: 513px;
overflow: hidden;
}
.main_l .main_content{
width: 513px;
}
.main_l .main_content .main_box{
width: 339px;
overflow: hidden;
float: left;
}
.main_l .main_content .main_box .list{
font-size: 14px;
line-height: 26px;
}
.main_l .main_content .main_box .list ul{
padding: 8px 0;
border-bottom: #e1e1e1 1px solid;
width: 339px;
overflow: hidden;
}
.main_l .main_content .main_box .list ul li{
padding-left: 25px;
background: url(images/s3.png) 3px -300px no-repeat;
width: 600px;
}
.main_l .main_content .main_box .list ul .v{
background: url(images/s3.png) 3px -330px no-repeat;
}
.main_l .main_content .main_box .list ul .top{
background: none;
padding-left: 0;
text-align: center;
font-size: 14px;
font-weight: 700;
width: 339px;
}
.tab div.t.none{
display: none;
}
.tab .main_title ul.fx li{
background-color: transparent;
}
.tab .main_title ul.fx li, .tab .main_title ul.fx li.on{
border-top: 0;
margin-top: 3px;
padding-top: 0;
}
.tab .main_title ul.fx li.on{
border-left-color: transparent;
border-right-color: transparent;
border-bottom-width: 0;
}
.tab .main_title ul.fx{
z-index: 20;
position: relative;
}
.tab .main_title div.animate{
height: 23px;
position: absolute;
top: 0;
border-top: #009ad9 4px solid;
border-left: #009ad9 1px solid;
border-right: #009ad9 1px solid;
border-bottom: #fff 1px solid;
background-color: #fff;
}
</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实现MSN中文网滑动Tab菜单效果代码的评论...
更新日志
2025年11月12日
2025年11月12日
- 小骆驼-《草原狼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]
