BootstrapTable 列背景颜色以及字体颜色

1、使用的单元格属性cellStyle

column:[
            {
                field: 'birthday',
                title: '生日',
                align: 'center',
                cellStyle: columnColorFunction
            }
]
function columnColorFunction (value, row, index) { 
         if (value == "1999-02-11") {
     //字体颜色
                return {css:{'color':'#ed5565'}};
            } else {
          //背景颜色
                return {css:{'background-color':'#ed5565'}};;
            }
}
原文地址:https://www.cnblogs.com/wongzzh/p/15102719.html