根据Bootstrap中的内容更改输入字段的高度

问题描述 投票:0回答:1

我正在尝试在引导程序输入字段中放入内容,它甚至没有花哨。请找到随着内容大小增加而需要在其中调整高度的代码行。

                      <input type="text" autocomplete="off" class="form-control" name="typeOfOwnership"  [(ngModel)]="newJson?.basicDetails.typeOfOwnership[0].typeOfOwnershipName" readonly>

enter image description here

angular twitter-bootstrap input word-wrap
1个回答
0
投票

当您的内容较大时,应改用Textarea

尝试使用此

<textarea [(ngModel)]="newJson?.basicDetails.typeOfOwnership[0].typeOfOwnershipName" readonly></textarea>
© www.soinside.com 2019 - 2024. All rights reserved.