今天有人突然问道button设置padding为什么大小不会变化,特意找了下原因:
因为button浏览器已经自己设置了box-sizing:border-box,所以无效。类似的还有 input[type="submit"], input[type="reset"], input[type="file"]
参考资料:点击打开链接
今天有人突然问道button设置padding为什么大小不会变化,特意找了下原因:
因为button浏览器已经自己设置了box-sizing:border-box,所以无效。类似的还有 input[type="submit"], input[type="reset"], input[type="file"]
参考资料:点击打开链接