#menu { padding:0px; position:absolute; margin:0 auto; height:26px; /*background:#ABC;*/ top:110px; width:960px; left:15%; z-index:990;}#menu ul{ margin:0 auto; position:absolute; /*background:#00FF00;*/ list-style:none; padding:0px; height:26px; line-height:26px;}#menu ul li{ float:left; padding:0px; height:26px; line-height:26px;}#menu ul li a { color:#7777CC; display:block; padding:0px 27px; height:26px; line-height:26px; float:left;}#menu ul li a:hover { background:#7777CC; color:#EEE;}#menu #submenu { position:absolute; padding:0px; float:left; top:26px; width:600px; height:54px; display:block; background-color:#AAB;}.subitem { width:600px; color:#FF0000;}Copy after login
代码如上,submenu继承了menu的字体颜色,无法独立定义
回复讨论(解决方案)
#menu .subitem a{
color:#FF0000;
}
这样就行了