利用CSS实现下拉菜单导航
2011-10-10 15:23
811 查看
<body> <div id="outside"> <ul> <li> <a href="#"> 视频教程 <table> <tbody> <tr> <td> <div class="inside"> <span> <a target="_blank" href="#">平面设计</a> </span> <span> <a target="_blank" href="#">编程开发</a> </span> <span> <a target="_blank" href="#">三维动画</a> </span> <span> <a target="_blank" href="#">网页制作</a> </span> <span> <a target="_blank" href="#">Flash动画</a> </span> </div> </td> </tr> </tbody> </table> </a> </li> </ul>
下面是css文件:
* { border: 0 none; font-family: "宋体","新宋体","仿宋_GB2312","Arial Unicode MS",Arial; font-size: 12px; margin: 0; padding: 0; } ul { list-style: none outside none; } li { float: left; position: relative; } table { left: 0; position: absolute; top: 0; } a { background: url("picture/hd_bg_02.jpg") repeat scroll 0 0 transparent; color: #FFFFFF; display: block; height: 35px; line-height: 35px; text-align: center; text-decoration: none; width: 150px; } a:hover { background: url("picture/hd_bg_03.jpg") repeat scroll 0 0 transparent; color: #BD6B09; } #outside { margin: 5px 0; } li:hover .inside, a:hover .inside { background: none repeat scroll 0 0 #CCCCCC; display: block; left: -2px; position: relative; top: 33px; } .inside { display: none; } .inside span a { background: none repeat scroll 0 0 #CCCCCC; color: #000000; } .inside span a:hover { background: none repeat scroll 0 0 #3366FF; color: #FFFFFF; }
相关文章推荐
- 【荐】采用jquery+css实现极酷的下拉菜单导航
- 纯洁CSS实现下拉菜单和下拉容器(纯洁CSS导航栏和导航下拉容器)
- jquery+css实现简单二级下拉菜单导航
- 采用jquery+css实现极酷的下拉菜单导航
- 纯CSS实现下拉菜单及下拉容器等(纯CSS实现导航条及导航下拉容器)
- 利用CSS实现悬停下拉菜单
- 用原生JS实现的一个导航下拉菜单,下拉菜单的宽度与浏览器视口的宽度一样(js+html+css)
- 纯CSS实现下拉菜单及下拉容器等(纯CSS实现导航条及导航下拉容器)
- 纯CSS实现下拉菜单及下拉容器等(纯CSS实现导航条及导航下拉容器)
- Div+CSS+JS实现的树型下拉菜单导航
- 利用Js+Css实现折纸动态导航效果实例源码
- 纯CSS实现下拉菜单导航
- 纯CSS实现二级导航下拉菜单--css的简单应用
- 利用Javascript实现下拉菜单导航
- JS+CSS实现电子商务网站导航模板效果代码
- 纯CSS实现的菱形导航菜单效果代码
- CSS实现三级下拉菜单分析
- 利用frame实现简单的导航功能
- 【荐】纯CSS实现苹果MAC官方网站的菜单导航
- JavaScript+Css实现的鼠标悬停时动态翻滚的紫色菜单导航