如果您绝对必须使用input
,请尝试以下操作:
background-image: url(...);
background-repeat: no-repeat;
background-position: <left|right>;
padding-<left|right>: <width of image>px;
它通常是一个比较容易使用button
与img
内:
<button type="submit"><img> Text</button>
但是,button
用于提交的浏览器实现与所有按钮值都在button
使用时发送的事实是不一致的-这取消了多次提交形式的“单击了什么按钮”检测。