1.去掉 chrome input黄色背景色:
input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important; }
2.*chrome默认最小字体为12px
3.React 不可编辑输入框样式:
.ant-input-disabled{background-color: unset!important; background: unset!important;}
.ant-select-disabled .ant-select-selection{background-color: unset!important; background: unset!important;}
本文介绍了如何去除Chrome浏览器中input元素的黄色背景色、调整默认最小字体大小及设置React中不可编辑输入框的样式等实用技巧。
1245

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



