2017-01-09 73 views

回答

0

爲了改變表的風格,應該使用TableStyle類及其setPadType方法將STR_PAD_BOTH傳遞給它。

實施例:

$table = new Table($output); 

// set table contents 
// ... 

$tableStyle = new TableStyle(); 
$tableStyle->setPadType(STR_PAD_BOTH); 

$table->setStyle($tableStyle)->render();