How do you change the style of cell in a JQuery.DataTable?

后端 未结 5 1326
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-05 02:39

I have a question about setting the style attributes for a data cell in the jQuery.DataTable. I was able to set the width for each column when initializing the

5条回答
  •  不知归路
    2021-02-05 03:37

    Quick and easy way would be to add an nth-child class for the table. So in your case:

    #example td:nth-child(2) {
        text-align: right;
    }
    

提交回复
热议问题