您的位置:首页 > Web前端 > HTML5

html5 input type number 去掉加减号

2015-09-09 01:06 525 查看
原文链接:https://www.geek-share.com/detail/2652731960.html

在chrome下:

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
    -webkit-appearance: none !important;
    margin: 0; 
}

Firefox下:

input[type="number"]{-moz-appearance:textfield;}

转载于:https://www.cnblogs.com/anyaran/p/4793463.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: