我正在使用Dompdf来生成php中的报告.我无法将相同的外部样式表包括在内......
我使用的代码类似于以下内容:
<?php
require_once "dompdf/dompdf_config.inc.php";
$dompdf = new DOMPDF();
$html ="
<table>
<tr >
<td class='abc'>testing table</td>
</tr>
<tr>
<td class='def'>Testng header</td>
</tr>
</table>";
$dompdf->load_html($html);
$dompdf->render();
$dompdf->set_base_path('localhost/exampls/style.css');
$dompdf->stream("hello.pdf");
?>
Run Code Online (Sandbox Code Playgroud)
请告诉我如何包含外部css文件..
Possible Duplicate:
How to calculate the date difference between 2 dates using php
嗨,我正在使用dd-mm-yyyy格式的日期; 你能告诉我如何找到两个日期之间的差异吗?