网页制作中 当鼠标放在button按钮上时 按钮颜色改变 如何实现?

当鼠标放在submit按钮上时 按钮颜色改变 如何实现? 1.首先a:hover{}是不行的。 2.可以通过下面两条代码实现: “this.style.backgroundColor=‘red’;” “this.style.backgroundColor=‘white’;” 参考:https://zhidao.baidu.com/question/1754580306745397948.html
相关文章
相关标签/搜索