隐藏input文本框为数字number类型时的上下箭头
当input type属性为nuber时,浏览器默认会显示向上和向下两个箭头
可以通过css隐藏样式隐藏这个样式:
CSS 全选
/* google、safari */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button{
-webkit-appearance: none !important;
margin: 0;
}
/* 火狐 */
input[type="number"]{
-moz-appearance: textfield;
}
版权声明:本文为YES开发框架网发布内容,转载请附上原文出处连接
post 张国生