bootstrap中表格大小设置_如何实现bootstrap中的表格样式

将头bootstrap设置为float:left,后面的内容设置 display: inline,就可以自动的铺平后续的位置,但会出现乱序,可用padding-left来设置,就不会乱序了。

效果如下:

html代码:

angular.js

AngularJS is an MVC framework for building web applications. The core features include HTML enhanced with custom component and data-binding capabilities, dependency injection and strong focus on simplicity, testability, maintainability and boiler-plate reduction.

*64254

css代码:

/row的样式/

main .row {

height: auto;

min-height: 5.5em;

border: solid;

border-width: 1px;

border-color: #f5f5f5;

background-color: #ffffff;

}

main .row:hover {

background-color:#f5f5f5 ;

}

/将head设置为float/

main .row .head {

display: inline;

float: left;

width: 10em;

min-width: 10em;

padding-top: 0em;

margin-left: 2em;

}

/当内容比较多时,会乱行,加上左边距就不会了,但也存在问题,这样加完之后,无论浏览器怎么缩小,都不是自动的换行,如果不加的话,是可以随着浏览器的大小自动换行的/

span p {

padding-left: 12em;

}

/和上面那个span p是一个理由/

.count {

margin-top: 0em;

padding-left: 12em;

padding-top: 0em;

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值