分类：电脑/网络-互联网-上网帮助
问题：onMouseMove="show()"无效果[html]&lt 
[html]<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题</title><script>function show(){ yle.display=''}function hide(){ yle.display="none"}</script><style type="text/css">l[html]<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题</title><script>function show(){ yle.display=''}function hide(){ yle.display="none"}</script><style type="text/css">li{ background-color:#CCCC99;    }li ul{ :absolute; :none }li ul li{background-color:#ff0000}</style></head><body ><ul id="nav" >  <li   onMouseMove="show()"  onMouseOut="hide()" ><a  href="#">1</a></li>    <ul id="aa" style="">        <li ><a href="#">11</a></li>        <li><a href="#">12</a></li>        <li><a href="#">13</a></li>      </ul>   <li><a  href="#">2</a></li>  <li><a  href="#">3</a></li></ul></body></html>[/html]把  写在li ul{}里没有效果，onMouseMove="show()"  没有效果但是写在<ul id="aa" style="  ">  onMouseMove="show()"  就有效果了。为什么会这样还有一个问题[html]<style type="text/css">div{ background-color:#999999}</style><div onMouseMove="alert( ckgroundColor)">sdafsdfsa</div>[/html]象这样alert出来的怎么是空值啊？
回答：1)试试:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题</title><script>function show(){ yle.display=''}function hide(){ yle.display="none"}</script><style type="text/css">li{ background-color:#CCCC99;    }li ul{ :absolute;  }li ul li{background-color:#ff0000}</style></head><body ><ul id="nav" ><li onMouseMove="show()" onMouseOut="hide()" ><a href="#">1</a></li><ul  id="aa"style=" "> <li ><a href="#">11</a></li> <li><a href="#">12</a></li> <li><a href="#">13</a></li> </ul><li><a href="#">2</a></li><li><a href="#">3</a></li></ul></body></html>2)试试:<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"><title>无标题文档</title></head><body ><div  style="background-color:#999999" onMouseMove="alert( ckgroundColor)">sdafsdfsa</div></body></html>