鼠标放在button按钮颜色改变、、input按钮怎么添加超链接
鼠标放在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('连接')">
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。