input限制字数,限制数字,隐藏右侧箭头
<input type="number" class="phone" oninput="if(value.length>11)value=value.slice(0,11)" placeholder="请输入手机号码"/>
.phone::-webkit-inner-spin-button,
.phone::-webkit-outer-spin-button {
-webkit-appearance: none;
}
/* 兼容Firefox */
.phone[type=number] {
-moz-appearance: textfield;
}