我已经尝试过代码,它适用于chrome但不适用于firefox
input[type=time]::-webkit-datetime-edit-ampm-field {
display: none;
}
input[type=time]::-webkit-inner-spin-button,
input[type=time]::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 9px;
}