<!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>
*{margin:0;padding:0}
body{font-size:15px;text-align:center}
.showLess{margin:auto;width:600px}
.showLess ul li{display:block;text-align:center;line-height:30px}
.showMore{clear:both;padding-top:15px}
a{text-decoration:none;}
a:hover{color:green;text-decoration:underline}
</style>
<script type="text/javascript" src="../script/jquery-1.4.2.min.js"></script>
<script>
$(function(){
var $category = $(".showLess ul li:gt(2):not(:last)");
$category.hide();
$(".showMore a span").toggle(function(){
$category.show();
$(".showMore a span").text("精简显示品牌");
return false;
},function(){
$category.hide();
$(".showMore a span").text("显示全部品牌");
return false;
});
})
</script>
</head>
<body>
<div class="showLess">
<ul>
<li><a href="#">列表一</a></li>
<li><a href="#">列表二</a></li>
<li><a href="#">列表三</a></li>
<li><a href="#">列表四</a></li>
<li><a href="#">列表五</a></li>
<li><a href="#">列表六</a></li>
<li><a href="#">列表七</a></li>
<li><a href="#">列表八</a></li>
<li><a href="#">列表九</a></li>
<li><a href="#">列表十</a></li>
</ul>
<div class="showMore"><a href="#"><span>更多品牌 +</span></a></div>
</div>
</body>
</html>