Mam prosty formularz na stronie Bootstrap, ale zamiast podstawowego szarego tekstu na białym tle, chcę uzyskać biały tekst na szarym tle. Udało mi się zająć szarym tłem, ale nie mogę zmienić koloru zastępczego ani tekstu wejściowego.Zmiana kolorów formularzy Bootstrap
Mała akcja JSFiddle.
Tu jest mój znaczników HTML:
<div class="span6" id="email-form">
<form name="contact-form" id="contact-form" method="post" action="form-processing.php">
<input class="span6" name="Name" id="Fname" type="text" placeholder="Your name" required>
<input class="span6" name="Email" id="Email" type="email" placeholder="Your email" required>
<textarea class="span6" name ="Message" id="Message" type="text" rows="10" placeholder="What services will you be requiring?" required></textarea><br>
<button type="submit" class="btn btn-primary">Send</button>
<button type="clear" class="btn">Clear</button>
</form><!--/.span6-->
</div><!--/#email-form-->
Oto CSS Próbowałem prace zmiana koloru tła, ale nie zastępczy lub tekst.
#Email, #Fname, #Message{
background-color:#666;
}
#Email placeholder, #Fname placeholder, #Message placeholder{
color:#FFF;
}
#Fname text{
color:#FFF;
}
Ten może pomóc: [Zmiana zastępczy kolor] (http://stackoverflow.com/a/2610741/1130908) –