input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
appearance: none;
margin: 0;
}
/* 火狐 */
input{
-moz-appearance:textfield;
}
---------------------
作者:VictorDu666
来源:优快云
原文:https://blog.youkuaiyun.com/github_38516987/article/details/78072570
版权声明:本文为博主原创文章,转载请附上博文链接!
input中type为number的时候,去除箭头
最新推荐文章于 2024-12-10 08:08:48 发布
本文介绍如何使用CSS代码去除HTML输入框中的上下箭头,适用于Chrome和Firefox浏览器,通过设置-webkit-appearance和-moz-appearance属性实现。
1417

被折叠的 条评论
为什么被折叠?



