日期:2014-05-16  浏览次数:20391 次

高亮效果
网页互动,鼠标移动到某个地方高亮色 闲话不多说,导航条互动,当鼠标移动上去就变色,现在的颜色是灰色现在的颜色是灰色,当移动到去变橙色,移出导航条就恢复成灰色。我自己做了下,当我鼠标移动到导航条,整个导航条都变色,这不是我需要的效果!
<style type="text/css">
body{
margin:0px;
}
#out{
width:811px;
height:570px;
margin:auto;
}
/* 全局*/
#head{
width:811px;
height:67px;
}
#head_a{
background-image:url(images/1_02.gif.gif);
width:209px;
height:67px;
}
#head_b{
float:right;
width:602px;
height:67px;
margin-top:-67px;
}
/* 头部*/
.tu{width:811px;
height:300px;
}
.xia{width:811px;
height:60px;
margin:auto;
}
.jichen{width:88px;
height:60px;
line-height:60px;
background-color:#CCCCCC;
float:left;
margin-left:1px;
margin-right:1px;
text-align:center;
}
#tu_a{background-image:url(images/1_08.gif.gif);
width:711px;
height:239px;
margin-top:0.7px;
margin-left:50px;
}
/*中间*/
#main{width:811px;
height:161px;
}
.lia{width:300px;
height:161px;
float:left;
margin-left:6px;
margin-right:6px;
}
#tu_b{background-image:url(images/1_12.gif.jpg);
width:162px;
height:101px;
float:left;
margin-left:5px;
}
.daohan{height:30px;
background-color:#000000;
}
.nei{width:300px;
height:131px;
background:url(images/tu.jpg)repeat-x;
}
#han{width:171px;
height:30px;
background-color:#00CC99;
}
.san{width:171px;
height:131px;
float:left;
margin-left:8px;
}
/*主要内容*/
#foot{width:811px;
height:30px;
background-image:url(images/1_52.gif.gif);
margin-top:15px;
}
/*尾页*/
</style>
<body>
<div id="out">
<div id="head">
  <div id="head_a"></div>
  <div id="head_b"></div>
  </div>
<div class="tu">
  <div class="xia">
  <div class="jichen">首页</div>
  <div class="jichen">关于我们</div>
  <div class="jichen">新闻中心</div>
  <div class="jichen">产品中心</div>
  <div class="jichen">地板保养</div>
  <div class="jichen">国际化战略</div>
  <div class="jichen">热点专题</div>
  <div class="jichen">联系我们</div>
  <div class="jichen">谢谢关注</div>
  </div>
  <div id="tu_a"></div>
  </div>
<div id="main">
  <div class="lia">
  <div class="daohan"></div> 
<div class="nei"></div>
  </div>
  <div class="lia">
  <div class="daohan"></div>
  <div class="nei"></div>
  </div>
  <div class="san">
  <div id="han"></div>
  <div id="tu_b"></div>