使用默认的英雄单元示例,我有一个自定义的 3 列布局:
<div class="container">
<div class="row">
<div class="span4"></div>
<div class="span4"></div>
<div class="span4"></div>
</div>
</div>
它显示为:
但我真的希望中间内容是一个固定的宽度......就像(剪切粘贴photoshop的文学内容):
如何调整要修复的中间内容的大小?还对如何固定左右两侧感兴趣?
代码(bootstrap hero 默认示例中的库存较少):
<div class="container">
<div class="row">
<div class="span4">
<div class="row">
<div class="span4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. cursus commodo, tortor ma</p>
<p><a class="btn" href="#">View details »</a></p>
</div>
</div>
</div>
<div class="span4">
<div class="row" >
<div class="hero-unit">
<h1>Hello, world!</h1>
<p>This is a template for a simple marketing or informational website. </p>
<p><a href="#" class="btn btn-primary btn-large">Learn more »</a></p>
</div>
</div>
</div>
<div class="span4">
<div class="row">
<div class="span4">
<h2>Heading</h2>
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus </p>
<p><a class="btn" href="#">View details »</a></p>
</div>
</div>
</div>
</div>
</div>