Home  >  Article  >  Web Front-end  >  How to remove the up and down arrows in the input box in input type=number

How to remove the up and down arrows in the input box in input type=number

一个新手
一个新手Original
2017-10-10 10:27:383627browse

html code

默认:<input type="number" /><br><br>
处理:<input type="number" class="deal" />

css code

.deal::-webkit-textfield-decoration-container {
   background-color: #f0f3f9;
}    //添加背景色 下边两行是去掉input 输入框右边的上下箭头按钮.deal::-webkit-inner-spin-button {
   -webkit-appearance: none;
}
.deal::-webkit-outer-spin-button {
   -webkit-appearance: none;
}

The above is the detailed content of How to remove the up and down arrows in the input box in input type=number. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:Pure css3 navigationNext article:Pure css3 navigation