<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>CSS+JavaScript三级分类菜单</title>
<style>
*,body,ul,li,h1,h2 {
margin: 0;
padding: 0;
list-style: none;
}
body {
font: 12px;
padding-top: 20px;
}
dl {display: flex;}
dt {margin-right:10px;}
#menu {
width: 1000px;
margin: auto;
}
#menu h1 {
cursor: pointer;
font-size: 12px;
margin-right: 10px;
display: inline;
}
#menu h2 {
cursor: pointer;
display: inline;
color: #777;
font-size: 12px;
}
#menu ul {
height: auto;
}
#menu ul li {
display: inline;
}
.min {
display: flex;
}
.no {
display: none;
}
</style>
<script language="JavaScript">
function ShowMenu(obj, noid) {
var block = document.getElementById(noid);
var n = noid.substr(noid.length - 1);
var min = document.getElementById("min");
var child = document.getElementById("child&#