<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>仿京东菜单</title>
<style>
body{
background-color: #f4f4f4;
}
.container{
padding: 0;
margin: 0;
}
.leftmenu{
width: 190px;
height: 480px;
/*
border: 1px solid red;
*/
overflow: hidden;
margin-top: 10px;
padding: 10px 0;
background-color: #FFFFFF;
}
.menuitem{
height: 25px;
line-height: 25px;
padding-left: 18px;
font-size: 14px;
}
li{
list-style: none;
}
li:hover{
background-color: #e3e4e5;
}
a{
text-decoration: none;
color: black;
}
a:hover{
cursor: pointer;
color: red;
}
</style>
</head>
<body>
<div class="container">
<ul class="leftmenu">
<li class="menuitem"><a href="http://jiadian.jd.com">家用电器</a></li>
<li class="menuitem">
<a href="http://jiadian.jd.com">手机</a>
<span>/</span>
<a href="http://jiadian.jd.com">运营商</a>
<span>/</span>
<a href="http://jiadian.jd.com">数码</a>
</li>
<li class="menuitem">
<a href="http://jiadian.jd.com">电脑</a>
<span>/</span>
<a href="http://jiadian.jd.com">办公</a>
</li>
<li class="menuitem">
<a href="http://jiadian.jd.com">家居</a>
<span>/</span>
<a href="http://jiadian.jd.com">家具</a>
<span>/</span>
<a href="http://jiadian.jd.com">家装</a>
<span>/</span>
<a href="http://jiadian.jd.com">厨具</a>
</li>
<li class="menuitem">
<a href="http://jiadian.jd.com">男装</a>
<span>/</span>
<a href="http://jiadian.jd.com">女装</a>
<span>/</span>
<a href="http://jiadian.jd.com">童装</a>
<span>/</span>
<a href="http://jiadian.jd.com">内衣</a>
</li>
</ul>
</div>
</body>
</html>
相关推荐
© 2020 asciim码
人生就是一场修行