好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

二级下拉菜单a:hover样式调用不了_html/css_WEB-ITnose

本帖最后由 kxteb0cc 于 2013-01-07 18:46:49 编辑

我写了两个a:hover,但是二级下拉菜单始终使用的一级导航的hover,这是为嘛?我代码写的不对么?求高人指点!

 /* 一级导航 */* {margin: 0; padding: 0;}ul {list-style: none;}a {text-decoration: none;}body {margin-top: 5px;}#nav {background: #39F; widht: 100%; height: 30px; line-height: 30px;}#nav ul {float: left; position: relative; left: 50%;}#nav ul li {float: left; position: relative; right: 50%;}#nav a {display: block; width: 100px; margin: 0 5px; text-align: center;}#nav a:hover {background: #FFF; color: #F00;}/* 二级导航 */.nav_list {position:absolute; left: 0; top: 30px; width: 98px; border: 1px solid #000; background: #F60; line-height: 30px; overflow: hidden;}.nav_list a {display: block; color: #FFF; width: 100px; text-align: center; color: #F00;}.nav_list a:hover {background: #0F0; color: #00F;}     

查看更多关于二级下拉菜单a:hover样式调用不了_html/css_WEB-ITnose的详细内容...

  阅读:34次