我正在使用Bootstrap.css,其中有一个名为“form-control”的类。
我使用这个类来设置我的aspx控件的样式。问题是它的文本框字体颜色是灰色的,而我想要黑色的。我对CSS一窍不通。有没有办法可以将其从灰色改为黑色?
谢谢。
.form-control {
color:#000000;
}
input[type="text"] { color: black }
.black-input {
color: black
}
<input type="text" class="black-input">
.input-black {
// this is the one can change the color of a text even if its a placeholder
color: black;
}
<input type="text" class="input-black">
.form-control {
color: #000;
}
.parent .form-control {
color: #000;
}
学习一些CSS并不可怕。它非常容易掌握(您可以在不到一个小时内掌握基础知识)。