mirror of
https://github.com/twbs/bootstrap.git
synced 2024-11-29 11:24:18 +01:00
Merge pull request #14235 from twbs/doc-14221
Update docs & add example for #14221
This commit is contained in:
commit
a64f2008da
@ -375,7 +375,7 @@
|
|||||||
|
|
||||||
|
|
||||||
<h2 id="forms-controls-static">Static control</h2>
|
<h2 id="forms-controls-static">Static control</h2>
|
||||||
<p>When you need to place plain text next to a form label within a horizontal form, use the <code>.form-control-static</code> class on a <code><p></code>.</p>
|
<p>When you need to place plain text next to a form label within a form, use the <code>.form-control-static</code> class on a <code><p></code>.</p>
|
||||||
<div class="bs-example">
|
<div class="bs-example">
|
||||||
<form class="form-horizontal" role="form">
|
<form class="form-horizontal" role="form">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
@ -407,6 +407,32 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
{% endhighlight %}
|
||||||
|
<div class="bs-example">
|
||||||
|
<form class="form-inline" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only">Email</label>
|
||||||
|
<p class="form-control-static">email@example.com</p>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="inputPassword2" class="sr-only">Password</label>
|
||||||
|
<input type="password" class="form-control" id="inputPassword2" placeholder="Password">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-default">Confirm identity</button>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
{% highlight html %}
|
||||||
|
<form class="form-inline" role="form">
|
||||||
|
<div class="form-group">
|
||||||
|
<label class="sr-only">Email</label>
|
||||||
|
<p class="form-control-static">email@example.com</p>
|
||||||
|
</div>
|
||||||
|
<div class="form-group">
|
||||||
|
<label for="inputPassword2" class="sr-only">Password</label>
|
||||||
|
<input type="password" class="form-control" id="inputPassword2" placeholder="Password">
|
||||||
|
</div>
|
||||||
|
<button type="submit" class="btn btn-default">Confirm identity</button>
|
||||||
|
</form>
|
||||||
{% endhighlight %}
|
{% endhighlight %}
|
||||||
|
|
||||||
<h2 id="forms-control-focus">Input focus</h2>
|
<h2 id="forms-control-focus">Input focus</h2>
|
||||||
|
Loading…
Reference in New Issue
Block a user