开发者

using image as reset button

开发者 https://www.devze.com 2022-12-15 03:15 出处:网络
i want to use an image as reset button what code i should use in HTML a开发者_Go百科nd CSS ?Think this should do the trick.

i want to use an image as reset button what code i should use in HTML a开发者_Go百科nd CSS ?


Think this should do the trick.

 <button type="reset">
    <img src="#" alt="" />
 </button>


Good question. Can't be done AFAIK. Images can only serve as submit buttons. You would have to use Javascript to do a onclick="this.form.reset()" on a normal image, or style a normal reset button using a background image (should be possible without problems).

0

精彩评论

暂无评论...
验证码 换一张
取 消