Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想使用图像作为重置按钮我应该在 HTML 和 CSS 中使用什么代码?
认为这应该可以解决问题。
<button type="reset"> <img src="#" alt="" /> </button>
好问题。无法完成AFAIK。图片只能用作提交按钮。您必须使用 Javascript 对onclick="this.form.reset()"普通图像执行 a 操作,或使用背景图像设置普通重置按钮的样式(应该没有问题)。
onclick="this.form.reset()"