js点击事件onclick用法 在html里面怎么为一个按钮添加图片?
在html里面怎么为一个按钮添加图片?方法1:将onclick事件添加到图像中,并与JS事件一起提交。示例:<input type=“image”SRC=“picture address”/>
在html里面怎么为一个按钮添加图片?
方法1:将onclick事件添加到图像中,并与JS事件一起提交。示例:<input type=“image”SRC=“picture address”/>方法2:使用CSS将图片设置为按钮背景。示例:<input name=“image”SRC=“button”style=”宽度:10px高度:10像素边框:0背景:URL(图像路径)无重复左上“/>