如何在表格单元格dom pdf中添加css样式

时间:2015-01-05 05:31:09

标签: php codeigniter dompdf

嗨,这是我的代码,但保证金不能在表格单元格中工作,所以请给我一些建议。如何在" margin"中添加css。在表格单元格中

<html> <head> </head>

<body> <table> <tr>
       <td align="left" valign="top" style="color:#3a3a3c; font-size:14px;margin-left:50px;margin-right:50px;">Lorem ipsum dolor
sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
tincidunt ut laoreet dolore magna aliquam erat volutpat.</td>
      </tr>
      <tr>
        <td height="27" align="left" valign="top">&nbsp;</td>
      </tr>
      <tr>
        <td align="left" valign="top" style="color:#3a3a3c; font-size:14px;">Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat.</td>
      </tr>
      <tr>
       <td height="27" align="left" valign="top">&nbsp;</td>
      </tr>
     <tr>
        <td align="left" valign="top" style="color:#3a3a3c; font-size:14px;">Lorem ipsum dolor sit amet, consectetuer adipiscing
elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
aliquam erat volutpat.</td>
      </tr> </table>

</body> </html>

1 个答案:

答案 0 :(得分:0)

<td style="margin:10px"></td>