全国统一热线:
028-86758058
18980748058
购买流程
付款方式
常见问题
在线提问
续租服务
购物车(
0
件)
用户名:
密 码:
记住
首 页
HOME
域名注册
DOMAIN
虚拟主机
WEB HOST
成品网站超市
AUTO Site
VPS主机
VPS SERVER
云 主 机
CLOUD HOST
租用托管
SERVER
海外主机
HK HOST
代理专区
AGENT
客服中心
SERVICE
站长教程
SERVICE
欢迎光临西部数据云计算中心,我们将竭诚为您提供最优质的服务!
中文域名
域名转入
域名转出
DNS管理
动态域名
获取域名证书
域名停放
域名过户
集群主机
双线主机
基本主机
港台主机
论坛主机
Linux主机
Vip合租主机
超G型主机
ASP.net主机
Java主机
智能建站主机
网店主机
美国主机
数据库
成品网站超市
智能建站主机
集群VPS主机
国内VPS主机
香港VPS主机
美国VPS主机
云主机介绍
云主机购买
服务器租用
主机托管
常见问题
香港主机
港台主机
美国主机
国内免备案
步骤流程
代理级别
代理合同
代理模式
代理优势
在线申请
产品列表
常见问题
代理商分布图
常见问题
有问必答
跟踪提问
购买流程
产品价格
付款方式
常用软件
网站备案
续租服务
汇款确认
相关文档
联系我们
域名资讯
主机资讯
行业动态
网页制作
php教程
mysql教程
域名资讯
云计算资讯
网络编程
您当前的位置:
首页
>
网络编程
>
网站制作
html+css+jquery模仿搜索风云榜选项卡效果有截图
时间:1970-01-01 来源:互联网 作者:佚名
复制代码
代码如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>列表选项卡</title>
<style type="text/css">
body{
margin:0px;
padding:0px;
}
#main{
width:310px;
border:1px solid #C8C8CC;
margin-left:auto;
margin-right:auto;
margin-top:50px;
}
.main_title{
width:310px;
border-bottom:1px solid #C8C8CC;
height:30px;
}
#main div .chang{
border:1px solid #C8C8CC;
float:left;
width:153px;
height:26px;
text-align:center;
padding-top:4px;
cursor:pointer;
}
.main_head{
width:310px;
height:25px;
background-color:#FFF4F8;
}
.main_head font{
font-size:13px;
color:#808080;
margin-top:5px;
}
.main_content{
width:310px;
border-top:1px solid #808080;
}
.main_content ul{
margin-left:-30px;
margin-top:5px;
width:290px;
}
.main_content ul li{
list-style-type:none;
font-size:13px;
color:#2464B2;
border-bottom:1px dotted #808080;
line-height:27px;
}
.main_content ul li a{
font-size:13px;
color:#2464B2;
text-decoration:none;
}
.main_content ul li a:hover{
text-decoration:underline;
}
#main div ul.main_content_chang{
width:290px;
position:relative;
z-index:100;
top:0px;
left:0px;
display:block;
}
#main div ul{
position:relative;
display:none;
}
</style>
<script type="text/javascript" src="js/jquery-1.9.1.js"></script>
<script type="text/javascript">
$(function(){
$(".chang").each(function(index){
$(this).click(function(){
$(this).css("background-color","#E02D29");
$(this).siblings("div").css("background-color","#fff");
$("#main div ul").removeClass("main_content_chang");
$(".main_content ul:eq("+index+")").show().siblings("ul").hide();
})
})
})
</script>
</head>
<body>
<div id="main">
<div class="main_title">
<div class="chang" style="background:#E02D29">实时热点</div>
<div class="chang" style="float:right;">七日关注</div>
</div>
<div class="main_content">
<!-----------实时热点-------------->
<ul class="main_content_chang">
<li><img src="img/1_1.jpg"/> <a href="#">来自星星你的</a></li>
<li><img src="img/1_2.jpg"/> <a href="#">私人定制的</a></li>
<li><img src="img/3_1.jpg"/> <a href="#">全能星战的</a></li>
<li><img src="img/1_4.jpg"/> <a href="#">加多宝陪千万的</a></li>
<li><img src="img/1_5.jpg"/> <a href="#">女生厕所产子之后上课的</a></li>
<li><img src="img/1_6.jpg"/> <a href="#">圆通夺命快递始末的</a></li>
<li><img src="img/1_7.jpg"/> <a href="#">翻版张柏芝的</a></li>
<li><img src="img/1_8.jpg"/> <a href="#">李彦鹏说谎的</a></li>
<li><img src="img/1_9.jpg"/> <a href="#">1.7亿元存折的</a></li>
<li><img src="img/1_10.jpg"/> <a href="#">90后为讨好男友溺死亲生女的</a></li>
<li style="text-align:right; border-bottom-style:none"><a href="#" style="font-size:15px">查看完整榜单</a></li>
</ul>
<!-----------七日关注-------------------->
<ul>
<li><img src="img/1_1.jpg"/> <a href="#">南京出土神秘宝剑的</a></li>
<li><img src="img/1_2.jpg"/> <a href="#">民政局假结婚证的</a></li>
<li><img src="img/3_1.jpg"/> <a href="#">沃尔玛道歉的</a></li>
<li><img src="img/1_4.jpg"/> <a href="#">买发卡的女孩的</a></li>
<li><img src="img/1_5.jpg"/> <a href="#">假茅台骗两亿贷款的</a></li>
<li><img src="img/1_6.jpg"/> <a href="#">男子收到亡妻圣诞大礼的</a></li>
<li><img src="img/1_7.jpg"/> <a href="#">全球最美的100的</a></li>
<li><img src="img/1_8.jpg"/> <a href="#">陨石八千万</a></li>
<li><img src="img/1_9.jpg"/> <a href="#">安培参拜靖国神社</a></li>
<li><img src="img/1_10.jpg"/> <a href="#">春晚舞台曝光</a></li>
<li style="text-align:right; border-bottom-style:none"><a href="#" style="font-size:15px">查看完整榜单</a></li>
</ul>
</div>
</div>
</body>
</html>
结果展示:
来顶一下
返回首页
推荐资讯
从零开始学ASP.NET-基础篇第1/7页
第一天 学习目的: 掌握最基本的Label、TextBox、Button控件
ASP.NET入门数据篇
对于网站编程的初学者来说,总是会上网找些源码来看,但久而
相关文章
asp.net多选项卡页面的创建及使用方法
php css实现tab选项卡原理
栏目更新
栏目热门
返回首页
关于我们
联系我们
付款方式
价格总览
资讯中心
友情链接
媒体关注
有问必答
投诉建议
网站备案
《中华人民共和国增值电信业务经营许可证》编号:川B2-20080058号
官方网址:
xibushuju.com
西部数据
Copyright © 2002~2015
天府快车
版权所有
电话总机:
028-86758058
(50线) 传真:
028-86758058