其他分享
首页 > 其他分享> > el-input type=number时去掉右侧加减箭头

el-input type=number时去掉右侧加减箭头

作者:互联网

<el-input
  v-model.trim="form.threshold"
  placeholder="请输入"
  class="flex-1 editNum"
  type="number"
>
</el-input>
.editNum {
  input::-webkit-outer-spin-button,
  input::-webkit-inner-spin-button {
    -webkit-appearance: none;
  }
  input[type="number"] {
    -moz-appearance: textfield;
  }
}

 

标签:el,button,appearance,number,webkit,input,type
来源: https://www.cnblogs.com/rachelch/p/16490175.html