如何设置Textarea到100%高度在Bootstrap 3? [英] How to set a Textarea to 100% height in Bootstrap 3?
本文介绍了如何设置Textarea到100%高度在Bootstrap 3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想将 textarea
设置为100%的高度。我正在使用 Bootstrap 3 ,但找不到该选项。
I would like to set a textarea
to be 100% height. I'm using Bootstrap 3 but couldn't find an option there.
<div class="container">
<textarea class="form-control" rows="8"></textarea>
</div>
如何做?
推荐答案
html, body, .container {
height: 100%;
}
textarea.form-control {
height: 100%;
}
查看 Fiddle演示
这篇关于如何设置Textarea到100%高度在Bootstrap 3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文