bootstrap 设置table - td宽度问题?

1.bootstrap对td的宽度是怎么控制的?
2.为什么直接在行内加style="width:100px;",这种固定宽度没有效果?用style="width:10%;" 使用百分比就可以。

波斯汪
浏览 3512回答 2
2回答

扬帆大鱼

1.//对于 Bootstrap 3.0For Bootstrap 3.0:// class="col-md-*"&nbsp; 其中的*表示列的宽度With twitter bootstrap 3 use:&nbsp;class="col-md-*"&nbsp;where * is a number of columns of width.2.//对于 Bootstrap 2.0For Bootstrap 2.0:// class = "span*" 其中的*表示列的宽度With twitter bootstrap 2 use: class="span*" where * is a number of columns of width.3.// 如果有<th> 元素,在 th 上设置同样有效。** If you have <th> elements set the width there and not on the <td> elements.Bootstrap,来自 Twitter,是目前很受欢迎的前端框架。Bootstrap 是基于 HTML、CSS、JavaScript 的,它简洁灵活,使得 Web 开发更加快捷。 它由Twitter的设计师Mark Otto和Jacob Thornton合作开发,是一个CSS/HTML框架。Bootstrap提供了优雅的HTML和CSS规范,它即是由动态CSS语言Less写成。Bootstrap一经推出后颇受欢迎,一直是GitHub上的热门开源项目,包括NASA的MSNBC(微软全国广播公司)的Breaking News都使用了该项目。&nbsp;国内一些移动开发者较为熟悉的框架,如WeX5前端开源框架等,也是基于Bootstrap源码进行性能优化而来。
打开App,查看更多内容
随时随地看视频慕课网APP