2007年10月2日星期二

把onmouseover事件的变化直接写在.css样式


1楼

<style   type="text/css">  
  .showCSS{  
  event:expression(  
  onmouseover   =   function()  
  {  
  this.style.backgroundColor='#f0f0f0'  
  },  
  onmouseout   =   function()  
  {  
  this.style.backgroundColor='#ffffff'  
  }  
  )  
  }  
  </style>  
  <div   class="showCSS">把鼠标放上去试试看!:)</div>

2楼

楼上正解,

3楼

expression

4楼

Thank   you,     改CSS去咯

没有评论: