【发布时间】:2021-10-15 13:12:58
【问题描述】:
我想要两个 50% 的 div,但第一个 div 的内容有一个最小尺寸。
<div class="col-xs-6">
<div style="min-width:1000px">
<label>In here goes the value of the In here goes the value of theIn here goes the value of theIn here goes the value of theIn here goes the value of theIn here goes the value of theIn here goes the vae value of the In here goes the value of the In here goes the value of theIn here goes the value of theIn here goes the value of theIn here goes the value of theIn here goes the value of theIn here goes the vae value of the</label>
</div>
</div>
<div class="col-xs-6">
<label>TEST</label>
</div>
使用这个 sn-p,第一个 div 根本不是 50%,因为它的内容的最小宽度。
如何在第一个 div 上强制 50% 大小? (当然是水平滚动条)
【问题讨论】:
-
为什么不在第一列中使用
overflow:auto;?
标签: html css twitter-bootstrap twitter-bootstrap-3