2017-03-21 7 views
0

Ich habe gerade angefangen Bootstrap zu lernen und eine Website zu erstellen.Wie erstellt man ein leeres Textfeld mit Bootstrap?

Ich frage mich, wie man eine große leere Texteingabefeld erstellen? So dass jemand etwas eintippen kann, beispielsweise eine Rezension für ein Produkt.

Antwort

0

Ich denke, das ist, was Sie suchen.

<div class="form-group"> 
    <label for="comment">Comment:</label> 
    <textarea class="form-control" rows="5" id="comment"></textarea> 
</div> 


 

 
    <head> 
 
     <meta charset="utf-8"> 
 
     <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> 
 
     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> 
 
     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> 
 
    </head> 
 
    <body> 
 
     <form> 
 
     <div class="form-group"> 
 
<h4>Text Area Below with 15 Rows </h4> 
 
    <label for="comment">Comment:</label> 
 
    <textarea class="form-control" rows="15" id="comment"></textarea> 
 
</div> 
 
     </form> 
 
    </body>

+0

Thank you so much. Das ist, was ich suche. Wie verschiebe ich den Textbereich in die Mitte und passe die Breite und Höhe des Textbereichs an? Danke vielmals. – zesla

+0

bitte markieren Sie den Post als erledigt, damit der Autor dafür belohnt wird :) – Nimmi

+0

Bootstrap's Default Settings. Formularsteuerelemente erhalten automatisch ein globales Styling mit Bootstrap: Alle textuellen Elemente , und