bootstrap table给行怎么加背景色


本文摘自PHP中文网,作者藏色散人,侵删。

bootstrap table给行怎么加背景色

bootstrap table定义代码:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

$table.bootstrapTable({

    showExport: true,

    height: 540,

    rowStyle:rowStyle,//通过自定义函数设置行样式

    columns: [

        {

            field: 'id',

            title: '序号',

            align: 'center',

            sortable: true

        }, {

            field: 'sid',

            title: '学号',

            align: 'center'

        },

    ]

});

bootstrapTable设置行样式(背景颜色)函数1:通过调用bootstrap默认的样式来设置指定行的背景颜色

阅读剩余部分

相关阅读 >>

bootstrap 为什么只能默认12列

bootstrap是什么框架

layui和bootstrap的区别

三分钟带你了解bootstrap下拉菜单

如何解决bootstrap table乱码问题

bootstrap模态框加滚动条

bootstrap的常见面试题(总结)

bootstrap模态框怎么关闭事件

bootstrap和css区别

bootstrap有哪几种导航

更多相关阅读请进入《bootstrap》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...