以下是自己在实际工作中的javascript代码的汇总,算是一个备份吧!
1、 οnmοuseοver="this.style.backgroundColor='#21d7e2;'" οnmοuseοut= "this.style.backgroundColor='#d1f2f5'" 红色的分号是错误的!
οnmοuseοver="this.bgColor='#21d7e2'" οnmοuseοut= "this.bgColor='#d1f2f5'
以下是自己在实际工作中的javascript代码的汇总,算是一个备份吧!
1、 οnmοuseοver="this.style.backgroundColor='#21d7e2;'" οnmοuseοut= "this.style.backgroundColor='#d1f2f5'" 红色的分号是错误的!
οnmοuseοver="this.bgColor='#21d7e2'" οnmοuseοut= "this.bgColor='#d1f2f5'