急用,大家帮忙给看一下这个效果怎么来做
时间:2010-05-07
来源:互联网
大家帮忙给看一下,这个效果怎么来做啊,新手,就是那个隐藏层,鼠标移过去之后,会出现下一级菜单,但又不会在第二行的菜单的那个层的下面,是在下一行的层的上面,先谢谢了,
作者: haifeng2008 发布时间: 2010-05-07
作者: jenniferxiu 发布时间: 2010-05-07
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>www.7stk.com</title>
<style type="text/css">
<!--
/*Author:7stk.com*/
body{
background-color:white;
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
margin:0px;
padding:0px;
color:white;
}
ul,li{
margin:0px;
padding:0px;
}
li{
display:inherit;
list-style:none;
list-style-position

text-align:center;
font-weight:bold;
float:left;
}
a:link{
color:#336601;
text-decoration:none;
float:left;
width:100px;
padding:3px 5px 0px 5px;
}
a:visited{
color:#336601;
text-decoration:none;
float:left;
padding:3px 5px 0px 5px;
width:100px;
}
a:hover{
color:white;
float:left;
padding:3px 3px 0px 20px;
width:88px;
text-decoration:none;
background-color:#539D26;
}
a:active{
color:white;
float:left;
padding:3px 3px 0px 20px;
width:88px;
text-decoration:none;
background-color:#BD06B4;
position:absolute
}
#nav{
width:600px;
height:30px;
border-bottom:0px;
padding:0px 5px;
z-index:0;
}
.list{
line-height:20px;
text-align:left;
padding:4px;
font-weight:normal;
position:static;
overflow:hidden;
}
.menu1{
width:120px;
height:auto;
margin:6px 4px 0px 0px;
border:1px solid #9CDD75;
background-color:#F1FBEC;
color:#336601;
padding:6px 0px 0px 0px;
cursor:hand;
overflow-y:hidden;
}
.menu2{
width:120px;
height:18px;
margin:6px 4px 0px 0px;
background-color:#F5F5F5;
color:#999999;
border:1px solid #EEE8DD;
padding:6px 0px 0px 0px;
overflow-y:hidden;
cursor:hand;
}
-->
</style>
</head>
<body>
<div id="nav">
<ul>
<li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">ffffdasf
<div class="list">
<a href="#">fdasf</a><br />
<a href="#">fff</a><br />
<a href="#">dddd</a><br />
<a href="#">fdsaf</a><br />
<a href="#">fdsafdsaf</a><br />
<a href="#">ddd</a><br />
</div>
</li>
<li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">333333
<div class="list">
<a href="#">34</a><br />
<a href="#">35</a><br />
<a href="#">3־</a><br />
<a href="#">53453</a><br />
<a href="#">5435435</a><br />
</div>
</li>
</ul>
</div>
<div id="nav" style="clear:both">
<ul>
<li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">ffffdasf
<div class="list">
<a href="#">fdasf</a><br />
<a href="#">fff</a><br />
<a href="#">dddd</a><br />
<a href="#">fdsaf</a><br />
<a href="#">fdsafdsaf</a><br />
<a href="#">ddd</a><br />
</div>
</li>
<li class="menu2" onMouseOver="this.className='menu1'" onMouseOut="this.className='menu2'">333333
<div class="list">
<a href="#">34</a><br />
<a href="#">35</a><br />
<a href="#">3־</a><br />
<a href="#">53453</a><br />
<a href="#">5435435</a><br />
</div>
</li>
</ul>
</div>
</body>
</html>
作者: haifeng2008 发布时间: 2010-05-07
作者: haifeng2008 发布时间: 2010-05-07
自己多摸索。
作者: winzip 发布时间: 2010-05-07
作者: haifeng2008 发布时间: 2010-05-07
作者: isayno 发布时间: 2010-05-07
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28