本文实例讲述了jQuery实现常见的隐藏与展示列表效果。分享给大家供大家参考,具体如下:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>www.jb51.net jquery品牌列表效果</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel=" rel="external nofollow" stylesheet">
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
body {
font: 16px/20px "Microsoft yahei,'微软雅黑'"
color: #fff;
}
ul {
list-style-type:none;
}
a {
text-decoration: none;
color: #000;
}
ul li {
float: left;
text-align: right;
}
.clear:before,.clear:after {
content: "";
clear: both;
display: table;
height: 0;
overflow: hidden;
zoom: 1;
}
.SubCategoryBox {
width: 473px;
margin: 0 auto;
border: 1px solid;
}
.SubCategoryBox ul{
padding: 5px 10px;
}
.SubCategoryBox ul li {
padding: 5px;
}
.SubCategoryBox ul li:nth-child(3n-2) {
width: 130px;
}
.SubCategoryBox ul li:nth-child(3n-1) {
width: 161px;
margin-right: 30px;
}
.SubCategoryBox ul li:nth-child(3n) {
width: 130px;
}
.showmore {
text-align: center;
}
.showmore a {
background: #eef;
color: #CFCFE0;
}
.hightlight a,.hightlight i {
color: red;
/* font-weight: bold; */
}
</style>
</head>
<body>
<div class="SubCategoryBox">
<ul class="clear" id="bancon">
<li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >佳能</a><i>(30441)</i></li>
<li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >索尼</a><i>(30442)</i></li>
<li><a href="javascript:" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" rel="external nofollow" >三星</a><i>(30443)</i></li>










