<input type=text style="background-color:#f5f5f5" onmouseover="this.style.backgroundColor='#ffffff'" onmouseout="this.style.backgroundColor='#f5f5f5'">

解决方案 »

  1.   

    能不能把style的所有属性都告诉我?
    谢谢!
      

  2.   

    <div id=div1></div>
    <script>
    div1.style.background
    div1.style.backgroundAttachment
    div1.style.backgroundColor
    div1.style.backgroundImage
    ....
    div1.style.width
    ...
    </script>
    实在太多了,用visual interdev,会全部显示出来
    至于属性做什么的,可以参考css手册,css属性有脚本对应的属性
      

  3.   

    我给你一个body的style"文档"在地址栏中输入
    about:<body><body><script>var%20z="";for(var%20item%20in%20document.body.style)z+=item+"<br>";document.write(z)</script>:)