美文网首页
去除el-input类型为number时自带的增减按钮

去除el-input类型为number时自带的增减按钮

作者: aldonk | 来源:发表于2023-02-15 14:45 被阅读0次

随手记:去除el-input类型为number时自带的增减按钮


1676529795902.jpg

样式部分加入

// 去除自带的增减按钮
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
  -webkit-appearance: none !important;
}

相关文章

网友评论

      本文标题:去除el-input类型为number时自带的增减按钮

      本文链接:https://www.haomeiwen.com/subject/qoxukdtx.html