thinkphp Export the Excel table problem, already can export the table.
thinkphp Export the Excel table problem, already can export the table. But because the exported table has time, it cannot be fully displayed, how to change the style of the resulting table? Width? No place to find settings
------Solution--------------------
Your columns are identified by a "\ T" (tab), you actually output CSV format data
In fact, Excel can accept documents in a variety of formats, naturally including HTML
Use HTML tables to tag table, TR, TD, TH and CSS to produce the perfect form (no pictures, of course).
------Solution--------------------
Like yours.
$title = implode ("\ T", $title);
echo "$title \ n";
You can write.
$title = Implode ("", $title);
echo "$title \ n";
And, of course, there's
------Solution--------------------
1. Adjust the style to consider adding HTML tags to the cell
2. Adjust the width to control the width of Excel when exporting. Please refer to http://www.thinkphp.cn/topic/3739.html