我正在尝试设置表单 input["text"]
字段的样式,但周围都是这个白色边框/背景,但我没有不知道如何摆脱它。
谁能帮帮我?
.my-form-login input[type="text"] {
background-image: url('../images/text-input.png');
background-repeat: no-repeat;
outline: none;
width: 180px;
height: 30px;
border: none;
padding: 5px;
}
最佳答案
使用background-color:[父标签的背景色];
关于css - 自定义输入背景错误 ["text"] CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8257035/