使用vue框架写法

<div class="container">
   <el-input v-model="value" type="number"/>
</div>

// 选择器前要加::v-deep
<style lang="scss" scoped>
.inputScore-container{
   ::v-deep input::-webkit-outer-spin-button,
   ::v-deep input::-webkit-inner-spin-button {
       -webkit-appearance: none !important;
     }
   ::v-deep input[type=‘number’] {
       -moz-appearance: textfield !important;
     }
}
</style>

如果是input标签type=number,将上述css代码中::v-deep去掉即可

Logo

前往低代码交流专区

更多推荐