简体   繁体   中英

DataTables “No Data Available in Table” text position change

I have two datatable having id table1 and table2,By default "No Data Available in Table" text is center, i need to change the text of only table2 to left

Hi you can do it by css

table.dataTable td.dataTables_empty{
  text-align:left;
}

here is working example

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM