本文实例讲述了php如何生成word并下载的具体实例 。分享给大家供大家参考 , 具体如下:
先来看看前端的代码 1.html
<!DOCTYPE html><html><head> <title>PHP生成Word文档</title> <meta charset="utf-8"></head><body> <h1 style="text-align: center">xxx的简历</h1><h3>编号:000001</h3><table border="1" cellpadding="3" cellspacing="0" ><tr ><td width="93" valign="center" colspan="2" >姓名</td><td width="160" valign="center" colspan="4" >xxx</td><td width="89" valign="center" colspan="2" >学历</td><td width="156" valign="center" colspan="3" >xxx</td><td width="125" colspan="2" rowspan="4" align="center" valign="middle" > <img src=https://www.isolves.com/it/cxkf/yy/php/2019-09-19/"./img.jpg" width="120" height="120" />