<input id="Button1" onmouseover="this.style.text-decoration:underline" type="button" value="button" />
onmousevoer的時候不是這樣添加下滑線的嗎?

解决方案 »

  1.   

    this.style.text-decoration:underline 这是CSS的写法
      

  2.   

    this.style.xxx = xxx 吧,具体属性去查下手册
      

  3.   

    this.style.text-decoration:underline 写在JS函数function()里
    onmouseover="function()"
      

  4.   

    onmouseover="javascript:this.style.text-decoration:underline"
      

  5.   

    onmouseover="this.style.textDecoration=underline"
      

  6.   

    <style>
    .css{text-decoration:underline}
    </style>onmouseover="javascript:this.classname='css'";
      

  7.   

    onmouseover="this.style.textDecoration='underline'"
      

  8.   

    antoniusguo(anton)  
     
    onmouseover="javascript:this.style.text-decoration:underline"=================
    同意此观点
      
     
      

  9.   

    vicqqq的寫法是正確的
    其它的好想都有問題.