我设计了一个表单,其中连续有两个项目,如下所示:
我的输出
Code我用过的:
<div class="row">
<div class="col-sm-3"> <!-- [1, 0] -->
<fieldset class="form-group">
<label id="fieldTitle">Equipment Length</label>
<select id="selectOption" class="form-control" required data-error="Please select Equipment Length"></select>
<div class="help-block with-errors"></div>
</fieldset>
</div>
<div class="col-sm-9"> <!-- [1, 1] -->
<fieldset class="form-group">
<label id="fieldTitle">Customer Notes</label>
<textarea class="form-control" placeholder="Please write customer notes" ng-model="myTextarea" required data-error="Please enter customer notes"></textarea>
<div class="help-block with-errors"> {{myTextarea}} </div>
</fieldset>
</div>
</div>
所以,请指导我如何增加文本区域的高度,就像我的一样
desired output
please tell me how do I do it.
Thanks
使用 Bootstrap 4,您需要拥有属性行并添加“height: 100%;”这样高度就会拉伸到指定的行数。 “行”沿行不通。
<textarea rows="10" style="height:100%;"></textarea>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)