我需要以大写形式导出表内容,有什么解决方法吗?
我尝试过
.td{
text-transform:uppercase
}
但是在导出中不起作用。
这就是我导出表格的方式
$('#responsive').DataTable({
"processing": true,
"serverSide": true,
"aLengthMenu": [[15, 30, 50, 100], [15, 30, 50, 100]],
"iDisplayLength": 15,
"ajax": {
"url": "<?php echo base_url('Customer/posts') ?>",
"dataType": "json",
"type": "POST",
"data": {'<?php echo $this->security->get_csrf_token_name(); ?>': '<?php echo $this->security->get_csrf_hash(); ?>'},
},
"columns": [
{"data": "customer_id"},
{"data": "customer_name"},
{"data": "customer_phone"},
{"data": "customer_mail"},
{"data": "customer_gst_no"},
{"data": "customer_spindles"},
{"data": "customer_rand"},
]
});
答案 0 :(得分:0)
td {
text-transform:uppercase;
}