We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 212390a commit bef704bCopy full SHA for bef704b
css.md
@@ -285,4 +285,20 @@ user-select:none;
285
- 屏蔽苹果浏览器对数字的识别[Meta标签中的format-detection属性及含义](http://blog.sina.com.cn/s/blog_51048da70101cgea.html)
286
```html
287
<meta content="telephone=no" name="format-detection">
288
-```
+```
289
+
290
+- 移除HTML5 input在type="number"时的上下小箭头
291
+ - 在chrome下:
292
+ ```css
293
+ input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{
294
+ -webkit-appearance: none !important;
295
+ margin: 0;
296
+ }
297
+ ```
298
+ - Firefox下:
299
300
+ input[type="number"]{-moz-appearance:textfield;}
301
302
303
+ - 第二种方案:
304
+ - 将type="number"改为type="tel",同样是数字键盘,但是没有箭头。
0 commit comments