<input
type="text"
placeholder="请输入..."
onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"
/>
<input
type="text"
placeholder="请输入..."
onkeypress="javascript:if(event.keyCode == 32)event.returnValue = false;"
/>