span4 class is not working with twitter bootstrap 作为一个从事web开发的新新人类,我很高兴我使用上了Twitter Bootstrap了,我试着用下面的代码创建三个列
<div class="container">
<div class="row">
<div class="span4">
<h4 class="muted text-center">About me</h4>
<p>Sample Text1.</p>
<a href="#" class="btn"><i class="icon-user"></i> Text1</a>
</div>
<div class="span4">
<h4 class="muted text-center">About you</h4>
<p>Sample Text2</p>
<a href="#" class="btn btn-success"><i class="icon-star icon-white"></i> Text2</a>
</div>
<div class="span4">
<h4 class="muted text-center">About Us</h4>
<p>Sample Text3</p>
<a href="#" class="btn btn-info">Text3</a>
</div>
</div>
</div>
但是我发现,他们并没有被分成三列,而是一个叠在另外一个上面。我是否需要修改bootstrap.css文件,还是说默认的bootstrap.css并没有这个span4。
好了,我翻译不了了 简单地说就是, As of bootstrap 3.0...spanX have been depreciated,instead,col-xx-## is used now where xx can be lg, md, sm or xs and # ranges from 1 to 12
bootstrap3.0版本不再使用原来spanX的class了,你该使用col-xx-##的形式了 ##请用1到12数字代替 xx可以选用的有 lg: large md: middle sm: small xs: Extra Small(更小的)