简体   繁体   English

如何调整Bootstrap列类,使所有span标签不超过12个?

[英]How can adjust the Bootstrap column classes so all the span tags doesn’t exceed 12?

  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> <HeaderTemplate> <span class="col-xs-3">ID</span> <span class="col-xs-3">Product</span> <span class="col-xs-3"> Unit Price</span> <span class="col-xs-3">On Hand</span> <span class="col-xs-3">Total</span> </HeaderTemplate> 

How can I adjust the Bootstrap column classes so the total for all the span tags doesn't exceed 12 with this example above? 在上面的示例中,如何调整Bootstrap列类,使所有span标签的总数不超过12?

                        <span class="col-xs-2">ID</span>
                        <span class="col-xs-2">Product</span>
                        <span class="col-xs-2"> Unit Price</span>
                        <span class="col-xs-2">On Hand</span>
                        <span class="col-xs-4">Total</span> 

The sum of columns should not exceed 12 so you can to something like this to make it 12. 列的总和不应超过12,因此您可以将其设置为12。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用我的span标记,使其不会出现在新行中 - How to use my span tags so that it doesn't go to a new line 如何自动调整引导程序导航栏中的下拉框不超过页面宽度? - How to auto adjust dropdown box in bootstrap navbar not to exceed page width? 如何将背景色设置为 <p> 标记html; 这样背景色不会超过文本? - How to set background color to <p> tag in html ; so that background color doesn't exceed the text? google-code-prettify不会将类添加到Java代码的SPAN标记中 - google-code-prettify doesn't add the classes to SPAN tags for Java code 如何应用边距,以使元素的宽度不超过100%? - How can I apply margins so that elements don't exceed 100% width? 为什么背景不适用于范围标签? - Why doesn't background apply to span tags? 在 ReactJS 上,我的“根”div 并没有一直向上延伸。 我怎样才能扩展它? - On ReactJS, my 'root' div doesn't span all the way up. How can I expand it? 如何让 Bootstrap 列跨越多行? - How can I get a Bootstrap column to span multiple rows? Bootstrap:是否可以将列类分配给标题标签 - Bootstrap: Is it OK to assign column classes to heading tags 我的引导行和列占用相同的空间,不会自动调整大小 - My bootstrap row and column occupied same space it doesn't adjust size automatically
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM