为什么我打开页面时文本区域会自动缩小。
当我刷新页面时,它又恢复正常了。问题可能是
这是我的HTML代码
<div class="col-md-12 input-group pab pcomment">
<div class="input-group-prepend">
<span class="input-group-text">Comment</span>
</div>
<textarea matinput formControlName="pastMedicalHistoryComment" class="form-control" aria-label="Comment"></textarea>
</div>
这是我的formcontrol css
.input-group>.custom-file, .input-group>.custom-select, .input-group>.form-control {
position: relative;
-ms-flex: 1 1 auto;
flex: 1 1 auto;
width: 1%;
margin-bottom: 0;
}
2条答案
按热度按时间v7pvogib1#
只要给予它一些
min-width:400px
或一些像素,你想给默认的最小宽度。chy5wohz2#
你基本上想要这个,但我会让你把它与BS: