下载此文档

横向下拉菜单(导航菜单)1.pdf


文档分类:IT计算机 | 页数:约6页 举报非法文档有奖
1/6
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/6 下载此文档
文档列表 文档介绍
横向下拉菜单(导航菜单)

横向下拉菜单
——导航菜单


<!--
* {margin:0;padding:0;border:0;}
body {
font-family: arial, 宋体, serif;
font-size:18px;
}
#nav {
height: 30px; width: 580px; list-style-type: none;
padding-left:100px;
line-height:30px;overflow:hidden;background:#999;
}
#nav a {
display: block; width: 80px; text-align:center;
}
#nav a:link {
color:#EEE; text-decoration:none;
}
#nav a:visited {
color:#EEE;text-decoration:none;
}
#nav a:hover {
color:#00F;text-decoration:none;font-
weight:bold;background:#CCC;
}
#nav li {
float: left; width: 80px;
}
#nav li ul {
line-height: 30px;
list-style-type: none;
text-align:left;
left: -700px;
width: 420px; //注意,这里一定要设置宽度;
position: absolute;
background:#CCC;
}
#nav li ul li{
float: left;width: 80px; //float 就是子菜单横向的关键,可以继
承父菜单而省略 float
}
#nav li ul a{
display: block; width: 65px;text-align:left;padding-left:15px;
}
#nav li ul a:link {
color:#eee; text-decoration:none;
}
#nav li ul a:visited {
color:#eee;text-decoration:none;
}
#nav li ul a:hover {
color:#eee;text-decoration:none;font-
weight:normal;background:#C00;

横向下拉菜单(导航菜单)1 来自淘豆网www.taodocs.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数6
  • 收藏数0 收藏
  • 顶次数0
  • 上传人学习好资料
  • 文件大小112 KB
  • 时间2021-05-07