Others & 技术 08 Aug 2008 11:44 am

用php控制word的打印边距

将生成的word文件另存为htm,用文本比较工具(如svn的diff)差看差异,就可以找着关键点了。

<style>
<!–
@page Section1
 {size:595.3pt 841.9pt;
 margin:33.0pt 33.15pt 33.0pt 33.15pt;
}
div.Section1
 {page:Section1;}
……
</style>

<body>

<div  class=Section1>
…….
</div>
…….

Trackback This Post | Subscribe to the comments through RSS Feed

Leave a Reply