<div onmouseover="this.style.color='red';" onmouseout="this.style.color='';">...</div>

解决方案 »

  1.   

    <div style="background-color:#99ccff" onMouseOver="bk=this.style.backgroundColor;this.style.backgroundColor='#ffffcc'" onMouseOut="this.style.backgroundColor=bk">
    有一北京人搭乘中国民航班机,叫了一杯水,可没空姐理他,  这时他听后坐有人叫:丫的,我的XO还不送来?欠捧啊?  只见空姐忙不迭地送了XO过去,他想谁这么牛啊? 回头一看……</div>
      

  2.   

    如果这个div里有3个链接呢?
    <div id="Layer1" style="position:absolute; left:132px; top:212px; width:300px; height:16px; z-index:1;  layer-border: 1px none #000000; visibility: hidden" class="text" onmouseover="this.style.color='red';">
    <a href="#" target="main" >aaaaa</a>&nbsp;<a href="#" target="main" >bbbbb</a>&nbsp;<a href="#" target="main">ccccc</a></div>
    用backgroundcolor就不行了
      

  3.   

    这个你定义一下A的样式就行了。
    <style>
    A:LINK   {COLOR: #000000; TEXT-DECORATION: NONE}
    A:VISITED{COLOR: #000000; TEXT-DECORATION: NONE}
    A:ACTIVE {COLOR: #FFFFFF; TEXT-DECORATION: UNDERLINE;BACKGROUND-COLOR: #000000}
    A:HOVER  {COLOR: #FFFFFF; TEXT-DECORATION: NONE; BACKGROUND-COLOR: #000000}
    </style>
    放在head区