1,html怎么用按钮更换背景图片代码

给button按钮加一个背景图片,如果想要能动的就放一个jif的背景图片

html怎么用按钮更换背景图片代码

2,html5怎么设置点击button时botton改变背景图片

很简单的,只需要对按钮添加一个单击事件就可以啊。 <style type="text/css"> input background-color: pink; } </style> <script language="javascript" type="text/javascript"> <!-- function f1(e) e.style.backgroundColor = "blue"; } //--> </script> </head> <body> <input type="button" value="改变" onclick="f1(this)"/> </body>

html5怎么设置点击button时botton改变背景图片


文章TAG:网页5怎么悬浮切换背景图片  html怎么用按钮更换背景图片代码  
下一篇