嗨我在dompdf中遇到问题..我想用css显示我的发票页面。在localhost css,样式,图像工作正常,但在实时服务器CSS不支持,我启用DOMPDF_ENABLE_REMOTE但仍然无法正常工作,实际上我在codeigniter框架中开发了这个代码..请帮助我..我的编码是..
Php代码:控制器
public function dompdf($id="") {
$id = $this->uri->segment(3);
$page_data['po_id'] = $id;
// Load all views as normal
$this->load->view('admin/welcome_message',$page_data);
// Get output html
$html = $this->output->get_output();
// Load library
$this->load->library('dompdf_gen');
// Convert to PDF
$this->dompdf->load_html($html);
$this->dompdf->set_paper('sra3','landscape');
$this->dompdf->render();
$this->dompdf->stream("welcome.pdf",array('Attachment'=>0));
}
dompdf_config.inc.php
这里我启用了DOMPDF_ENABLE_REMOTE
def("DOMPDF_ENABLE_REMOTE", true);