一 案例
1.页面代码
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<style type="text/css">
body{font-size:12px; font-family:"宋体"}
.menu{ border:#dbbdbd 1px solid; background:url(images/bg.jpg) #d1e7ff repeat-x; width:140px;}
.menu-title{border-top:#ffffff 2px solid;hight:25px;background:#d3d3d3;text-align:center;line-height:25px;}
li{list-style-type:none;height:22px; test-align:center;font-weight:bold;line-height:22px;}
.ic{ border-top:#ffffff 1px solid; border-bottom:#d8d8d8 1px solid}
.ic2{background:url(images/ic1.gif) no-repeat left 2px;}
.ic3{background:url(images/ic2.gif) no-repeat left 2px;}
</style>
</head>
<body>
<div class="menu">
<div class="menu-title"> 纵向菜单</div>
<ul class="u1">
<li class="ic ic2"> <a href="#">新闻</a></li>
<li class="ic ic3"><a href="#">娱乐</a></li>
</ul>
</div>
</body>
</html>
2.页面效果