element-ui以及原生 input type='number' 不显示上下箭头

<div class="similar"><el-input type="number" v-model="similarInput" placeholder="相似度"></el-input>%</div>
 // 处理input type = number的上下箭头
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
     
  -webkit-appearance: none;
}
input[type="number"]{
     
  -moz-appearance: textfield;
}

你可能感兴趣的:(javascript)