Php Codeigniter表格标题文本不会居中
我使用codeigniter的表库创建的表中的表标题有问题,这是我的表模板:Php Codeigniter表格标题文本不会居中,php,codeigniter,html-table,Php,Codeigniter,Html Table,我使用codeigniter的表库创建的表中的表标题有问题,这是我的表模板: $tmpl = array ( 'table_open' => '<table style="align: center;" border="5" >', 'heading_row_start' => '<tr style="border: 2px solid black; background-col
$tmpl = array (
'table_open' => '<table style="align: center;" border="5" >',
'heading_row_start' => '<tr style="border: 2px solid black; background-color: #2ecc71; font-weight:bold; color:white; align:center;">',
'heading_row_end' => '</tr>',
'heading_cell_start' => '<th style="align:center;border: 2px solid black;" height=70 width=200>',
'heading_cell_end' => '</th>',
'row_start' => '<tr style="background-color: #DBF6ED; font-weight:bold;">',
'row_end' => '</tr>',
'cell_start' => '<td style="border: 2px solid black;" align=center height=50>',
'cell_end' => '</td>',
'row_alt_start' => '<tr style="background-color: white; font-weight:bold;">',
'row_alt_end' => '</tr>',
'cell_alt_start' => '<td style="border: 2px solid black;" align=center height=50>',
'cell_alt_end' => '</td>',
'table_close' => '</table>'
);
$tmpl=array(
“表_打开”=>“”,
'标题行开始'=>'',
“标题行末”=>”,
'标题单元格开始'=>'',
“标题单元格结尾”=>”,
'行开始'=>'',
'行结束'=>'',
'单元格\u开始'=>'',
“单元格结束”=>“”,
'行替换开始'=>'',
'行高度结束'=>'',
'单元格替换开始'=>'',
“单元格替换结束”=>“”,
“表_关闭”=>“
);
这就是它在表格标题中的作用:
如您所见,文本未居中。使用
文本对齐:居中代码>而不是对齐:居中代码>使用文本对齐:居中代码>而不是对齐:居中
尝试使用样式
文本对齐:居中
尝试使用样式
文本对齐:居中