gpt4 book ai didi

html - 如何在 Bootstrap 3 中将 Textarea 设置为 100% 高度?

转载 作者:技术小花猫 更新时间:2023-10-29 12:04:29 28 4
gpt4 key购买 nike

我想将 textarea 设置为 100% 高度。我正在使用 Bootstrap 3但在那里找不到选项。

<div class="container">
<textarea class="form-control" rows="8"></textarea>
</div>

怎么做?

最佳答案

html, body, .container {
height: 100%;
}
textarea.form-control {
height: 100%;
}

参见 demo on Fiddle

关于html - 如何在 Bootstrap 3 中将 Textarea 设置为 100% 高度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21261851/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com