需要在Bootstrap中给我的文本区域字段添加背景颜色。 这是文本区域字段。
<div class="form-group">
<div class="col-xs-12">
<textarea class="form-control" id="exampleTextarea" rows="6" placeholder="Message"></textarea>
</div>
</div>
需要在Bootstrap中给我的文本区域字段添加背景颜色。 这是文本区域字段。
<div class="form-group">
<div class="col-xs-12">
<textarea class="form-control" id="exampleTextarea" rows="6" placeholder="Message"></textarea>
</div>
</div>
添加这个类。
textarea#exampleTextarea {
background: gray;
}
或者您也可以使用这个。
#exampleTextarea {
background: gray;
}
textarea#exampleTextarea{
background-color:gray !important;
}
您需要添加其中一个预定义类https://getbootstrap.com/docs/4.1/utilities/colors/#background-color,例如.bg-warning
或.bg-danger
等:
<textarea class="bg-warning"></textarea>
或者在你的情况下,它会是这样的
<textarea class="form-control bg-warning"...
试试这个:
textarea.form-control {
color: #63AEEB
}
你可以使用ID
#email {
background-color: #E2E4E9 !important;
}