鼠标放在button按钮上时 按钮颜色改变 ?


<buttononmouseover="this.style.backgroundColor='red';"onmouseout="this.style.backgroundColor='';">button</button>比较完整的写法:<ahref="链接">  <inputtype=buttononclick="window.location.href('连接')"></a>注:1.若直接在本页跳转到新的页面,则用:<inputtype=buttononclick="window.location.href('连接')">  2.如果需要打开一个新的页面进行跳转,则用:<inputtype=buttononclick="window.open('连接')">