开发者

MySQL to Excel -- Setting Header Row Width and Color in Excel?

开发者 https://www.devze.com 2023-02-16 04:56 出处:网络
开发者_高级运维How to use php setting my excel header row\'s width and color?Very few information for a question ... anyways, I recommend to use PHPExcel:
开发者_高级运维

How to use php setting my excel header row's width and color?


Very few information for a question ... anyways, I recommend to use PHPExcel:
http://phpexcel.codeplex.com/


It depends on how you export the file. If you use a class that exports to real .xls you will need to use its methods.

If you export to a HTML table you can use a colgroup

<table>
    <!-- Column 1 -->
    <colgroup width="xxx" style="background-color: somecolor;">
    <!-- Column 2 -->
    <colgroup width="xxx" style="background-color: somecolor;">
    <tr><td></td><td></td></tr>
</table>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号