chrome 没有采用"col-lg-3"和"col-lg-9"的最大宽度,而是取宽度 100%。
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.2/css/bootstrap.min.css" rel="stylesheet"/>
<body>
<table class="col-12 form_one">
<tr>
<td class="col-lg-3 col-md-3 col-sm-3">
<h4>Project Information</h4>
</td>
<td class="col-lg-9 col-sm-9 col-md-9">
<h4>Project Text .....</h4>
</td>
<tr>
</table>
</body>
为什么要同时使用表格和网格系统?
我建议您使用表格(出于布局目的永远不会推荐(或具有语义上更合适的元素的网格系统,例如:
<section class="row">
<div class="col-lg-3 col-md-3 col-sm-3">
<h4>Project Information</h4>
</div>
<div class="col-lg-9 col-sm-9 col-md-9">
<h4>Project Text .....</h4>
</div>
</section>
另请注意,您忘记将列包装在 .row
元素中。
在 Codepen 上看到这个
我希望它对:)有所帮助