css - 自定义输入背景错误 ["text"] CSS

标签 css input background-color

我正在尝试设置表单 input["text"] 字段的样式,但周围都是这个白色边框/背景,但我没有不知道如何摆脱它。

谁能帮帮我?

enter image description here

.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/

相关文章:

VB.NET - 单击 Web 浏览器页面上的提交按钮

c - 在 C 中输入字符串时出现问题

css - 背景渐变为双色调纯色 - 一种颜色宽度(以 px 为单位)

javascript - 重现色彩效果

html - 在 div 的中心对齐文本和图像

javascript - 快速滚动以更改样式

html - 背景图片不显示

c# - CSS - 在 Outlook 浏览器中设置图像大小

linux - 在(ubuntu)linux 中捕获第二个键盘输入

java - 如何动态改变JFrame的背景颜色?