为了账号安全,请及时绑定邮箱和手机立即绑定

bootstrap 设置table - td宽度问题?

bootstrap 设置table - td宽度问题?

波斯汪 2019-02-12 10:07:53
1.bootstrap对td的宽度是怎么控制的?2.为什么直接在行内加style="width:100px;",这种固定宽度没有效果?用style="width:10%;" 使用百分比就可以。
查看完整描述

2 回答

?
扬帆大鱼

TA贡献1799条经验 获得超9个赞

1.//对于 Bootstrap 3.0

For Bootstrap 3.0:

// class="col-md-*"  其中的*表示列的宽度

With twitter bootstrap 3 use: class="col-md-*" where * is a number of columns of width.

2.//对于 Bootstrap 2.0

For 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都使用了该项目。 

国内一些移动开发者较为熟悉的框架,如WeX5前端开源框架等,也是基于Bootstrap源码进行性能优化而来。



查看完整回答
反对 回复 2019-03-17
  • 2 回答
  • 0 关注
  • 3475 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信