<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
<Meta http-equiv="Content-Type" Content="text/html; Charset=gb2312" />
<script src="js/jquery.js" type="text/javascript"></script>
<style>
body{margin:0; padding:0;}
ul,li,table,h1,h2,h3,h4,h5,h6,img,p,dd,dl,dt{ list-style:none; margin:0px; padding:0px; border:none;}
.banner {height:358px; width:948px; border:1px solid #d2d2d2; border-radius:5px; padding:5px; margin:0 auto; margin-top:100px;}
.banner .bannerlist{width:946px; height:356px; border:1px solid #dedede;}
.banner .bannerlist dl{text-align:center; float:left;}
.banner .bannerlist dl dt{width:46px;height:316px;cursor:pointer; border-left:1px solid #dedede;padding-top:40px; background-color:#cff9f9; background-image:url(../images/ico1.png) 14px 296px no-repeat;float:left;}
.banner .bannerlist dl dd{height:356px; width:756px; background:#f7e9bf; border-right:1px solid #dedede; border-left:1px solid #dedede;float:left;}
</style>
</head>
<body>
<div class="box">
<div class="banner">
<div class="bannerlist">
<dl>
<dt>苗族服饰文化1</dt>
<dd>苗族服饰文化1-内容</dd>
</dl>
<dl>
<dt>苗族服饰文化2</dt>
<dd>苗族服饰文化2-内容</dd>
</dl>
<dl>
<dt>苗族服饰文化3</dt>
<dd>苗族服饰文化3-内容</dd>
</dl>
<dl>
<dt>苗族服饰文化4</dt>
<dd>苗族服饰文化4-内容</dd>
</dl>
<dl>
<dt>苗族服饰文化5</dt>
<dd>苗族服饰文化5-内容</dd>
</dl>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
$(document).ready(function(){
//banner
$(".bannerlist dl").find("dd").hide();
$(".bannerlist dl:first").find("dd").show();
$(".bannerlist dl").find("dt").show();
$(".bannerlist dl:first").find("dt").hide();
//切换
$(".bannerlist dl dt").click(function(){
$(".bannerlist dl").find("dd").hide();
$(".bannerlist dl").find("dt").show();
$(this).hide();
$(this).next().show();
});
});
</script>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货