button按鈕控件的onmouseover與onmouseout事件的概述事例


   剛開始學習就遇到這樣的問題確實挺煩人的

  //button按鈕控件的onmouseover與onmouseout事件的概述
this.btn_login.Attributes.Add("onmouseover", "this.style.borderColor='white';this.style.color='white';this.style.backgroundColor='#6b8e23';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
this.btn_login.Attributes.Add("onmouseout","this.style.borderColor='#6B8E23';this.style.color='#6B8E23';this.style.backgroundColor='white';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
this.btn_false.Attributes.Add("onmouseover", "this.style.borderColor='white';this.style.color='white';this.style.backgroundColor='#6b8e23';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
this.btn_false.Attributes.Add("onmouseout", "this.style.borderColor='#6B8E23';this.style.color='#6B8E23';this.style.backgroundColor='white';this.style.borderStyle='dashed';this.style.width='48px';this.style.height='24px'");
           


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM