Twitter bootstrap Span在引导程序3中不工作
Span在bootstrap v3.0.3中不起作用Twitter bootstrap Span在引导程序3中不工作,twitter-bootstrap,Twitter Bootstrap,Span在bootstrap v3.0.3中不起作用 <div class="span4"> <div class="list-group"> <a href="#" class="list-group-item active">Link</a> <a href="#" class="list-group-item">Link 1</a> <a
<div class="span4">
<div class="list-group">
<a href="#" class="list-group-item active">Link</a>
<a href="#" class="list-group-item">Link 1</a>
<a href="#" class="list-group-item">Link 2</a>
<a href="#" class="list-group-item">Link 3</a>
<a href="#" class="list-group-item">Link 4</a>
</div>
</div>
span
在引导程序3中变得多余。它现在已被col xx-#
取代,其中xx
可以是lg
、md
、sm
或xs
和
范围从1到12。把它读出来
下面是您的代码的外观:
<div class="col-md-4">
<div class="list-group">
<a href="#" class="list-group-item active">Link</a>
<a href="#" class="list-group-item">Link 1</a>
<a href="#" class="list-group-item">Link 2</a>
<a href="#" class="list-group-item">Link 3</a>
<a href="#" class="list-group-item">Link 4</a>
</div>
</div>
您可以根据需要使用上述任何一种
xx
,而不是md
。如Ranveer所述,引导3不再使用span,而是使用.col-xx-4(xx是调整大小生效的最小视口大小[xs,sm,md,lg])。以下是文档链接以获取更多信息:是否有其他类?col xx-#
是替代类。非常感谢ranveer。我建议您在继续之前阅读完整的Bootstrap 3文档。我也从2.3.2过渡到了3,课程也有了一些变化。谢谢你的建议。我已经使用了2.3.2。现在为了一个项目,我必须在3.0.3之前完成。我将阅读完整的文档。