内牛满面,能不能给源码啊?
单单那些目录就要手打若干小时~~~
单单那些目录就要手打若干小时~~~
2017-06-10
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>menu制作</title>
<style type="text/css">
*{
margin: 0;
padding: 0;
list-style: none;
}
.wrap{
position:relative;
width:200px;
left:50px;
top:50px;
}
ul{
padding: 15px 0;
margin:9px;
lise-style:0;
background: #6c6669;
color: #fff;
border-right-width: 0;
}
ul li{
display: block;
line-height: 30px;
padding-left: 15px;
cursor: pointer;
font-size: 14px;
position: relative;
}
li.active{
background: #FFFF00;
}
li span:hover{
color:red;
}
.none{
display:none;
}
#sub{
width:600px;
position:absolute;
border:1px solid #f7f7f7;
background:#f7f7f7;
box-shadow:5px 0px 5px rgba(0,0,0,.3);
left:200px;
top:0;
box-sizing:border-box;
margin:0;
padding:10px;
}
.sub_content a{
font-size:12px;
text-decoration:none;
color:#666;
}
.sub_content dd a{
border:1px solid #e0e0e0;
padding:0 10px;
margin:4px 0;
}
.sub_content dl{
overflow:hidden;
}
.sub_content dt{
float:left;
width:70px;
font-weight:bold;
clear:left;
position:relative;
}
.sub_content dd{
float:left;
margin-left:5px;
border-top:1px solid #eee;
margin-bottom:5px;
}
.sub_content dt i{
width:4px;
height:14px;
font:400 9px/14px consolas;
position:absolute;
right:5px;
top:5px;
}
</style>
</head>
<body>
<div>
<ul>
<li date-id="a"><span>
家用电器
</span></li>
<li date-id="b"><span>
手机/运营商/数码
</span></li>
<li date-id="c"><span>
电脑/办公
</span></li>
<li date-id="d"><span>
家具/厨具
</span></li>
</ul>
<div id="sub">
<div id="a" class="sub_content ">
<dl>
<dt><a href="#" >电视<i>></i></a></dt>
<dd><a herf="#">合资企业</a></dd>
<dd><a herf="#">国民企业</a></dd>
</dl>
<dl>
<dt><a href="#" >电视<i>></i></a></dt>
<dd><a herf="#">合资企业</a></dd>
<dd><a herf="#">国民企业</a></dd>
</dl>
<dl>
<dt><a href="#" >电视<i>></i></a></dt>
<dd><a herf="#">合资企业</a></dd>
<dd><a herf="#">国民企业</a></dd>
</dl>
<dl>
<dt><a href="#" >电视<i>></i></a></dt>
<dd><a herf="#">合资企业</a></dd>
<dd><a herf="#">国民企业</a></dd>
</dl>
</div>
</div>
</div>
</body>
</html>
举报