BootStrap 怎样调整<td>的宽度
2016-11-14 17:27
190 查看
//对于 Bootstrap 3.0
For Bootstrap 3.0:
// class="col-md-*" 其中的*表示列的宽度
With twitter bootstrap 3 use:
//对于 Bootstrap 2.0
For Bootstrap 2.0:
// class = "span*" 其中的*表示列的宽度
With twitter bootstrap 2 use:
// 如果有<th> 元素,在 th 上设置同样有效。
** If you have
没有亲自试过,不过觉的 Twitter 的工程师真是脑洞大开。
For Bootstrap 3.0:
// class="col-md-*" 其中的*表示列的宽度
With twitter bootstrap 3 use:
class="col-md-*"where * is a number of columns of width.
<tr class="something"> <td class="col-md-2">A</td> <td class="col-md-3">B</td> <td class="col-md-6">C</td> <td class="col-md-1">D</td> </tr>
//对于 Bootstrap 2.0
For Bootstrap 2.0:
// class = "span*" 其中的*表示列的宽度
With twitter bootstrap 2 use:
class="span*"where * is a number of columns of width.
<tr class="something"> <td class="span2">A</td> <td class="span3">B</td> <td class="span6">C</td> <td class="span1">D</td> </tr>
// 如果有<th> 元素,在 th 上设置同样有效。
** If you have
<th>elements set the width there and not on the
<td>elements.
没有亲自试过,不过觉的 Twitter 的工程师真是脑洞大开。
相关文章推荐
- css如何让<a>标签,根据输入的内容长度调整宽度,宽度自适应,那位大仙帮帮忙
- html 控制<td>标签的宽度
- text-overflow使用文字超多div的宽度或超过在table中<td>
- 如何调整<td>... </td>内容的行间距
- (礼拜一log)前端开发:<td> 标签的 colspan 属性 & 两个div并排、一个宽度固定的实现方法
- css table自动布局下<td>宽度计算
- 内容超出表格<td>宽度则自动隐藏
- <转载>c#如何禁止Form窗口调整大小,如何禁止combobox输入?
- mysql中的回车换行,jtable换行,自动调整行高,列宽 \r \n <br/>
- 去除List列表中重复值(稍作调整,也适合于List<T> 和 List<?>)
- 去除List列表中反复值(稍作调整,也适合于List<T> 和 List<?>)
- Bootstrap<基础九>辅助类
- 怎样让<img>图片的边框不显示
- 开发日志:struts标签[<s:selec>/<s:submit>/<s:form>......] 在table的时候位置错误 [会自动换行/自动生成tr、td的问题]
- 怎样通过后台控制前台<input>可编辑或不可编辑
- <td>加onclick事件,传参
- shopex中怎样去掉<meta name="generator" content="ShopExxxxxx 4.8.5" />呢?
- Bootstrap <基础五>表格
- 前端基础(5):html语法(4): <br> <td><tr><label>标签
- <<oracle database 11gR2 性能调整与优化 >>学习--11g的新特性:高级压缩