input在type=number时去右边上下箭头
生活随笔
收集整理的這篇文章主要介紹了
input在type=number时去右边上下箭头
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
html:
<input type="number">css:
<style>input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{-webkit-appearance: none !important;}input[type="number"]{-moz-appearance:textfield;} </style>在disabled狀態(tài)時,Chrome,FireFox,IE樣式也不一樣,為了更相近:
input{background: transparent;color: #aaa;border: 1px solid #aaa; }總結(jié)
以上是生活随笔為你收集整理的input在type=number时去右边上下箭头的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 苹果ios浏览器里面数字被当做电话号码
- 下一篇: 命令及串口命令_嵌入式Linux系列第7