隐藏input文本框为数字number类型时的上下箭头


当input type属性为nuber时,浏览器默认会显示向上和向下两个箭头

隐藏input文本框为数字number类型时的上下箭头

可以通过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开发框架网发布内容,转载请附上原文出处连接
张国生
上一篇:AP.NET Core获得注入管理器
下一篇:.NET Core MVC中间件使用记录日志
评论列表

发表评论

评论内容
昵称:
关联文章

PVE硬盘对应SATA口查询

联系我们
联系电话:15090125178(微信同号)
电子邮箱:garson_zhang@163.com
站长微信二维码
微信二维码