asp 菜单

来源:百度知道 编辑:UC知道 时间:2024/06/08 08:49:55
各位好,我想做一个这样的功能,类似于菜单:
点击总标题后,显示下面的各项,再点击总题后,下面的各项收起来,
请问各位大侠,怎么实现啊?

<!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>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<style type="text/css">
ul {
margin: 0;
padding: 0;
list-style: none;
width: 130px;
border-bottom: 1px solid #ccc;
font-size:12px;
}

ul li {
position: relative;
}

li ul {
position: absolute;
left: 129px;
top: 0;
display: none;
}

ul li a {
display: block;
text-decoration: no