Home > Web Front-end > CSS Tutorial > 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

一个新手
Release: 2017-10-10 10:27:38
Original
3660 people have browsed it

html code

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

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;
}
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template