Bootstrap.min.css 文件未在 tcpdf 中调用
Bootstrap.min.css file is not calling in tcpdf
我使用 bootstrap css 设计了发票,我使用 tcpdf 设计了发票。我调用了 bootstrap css 文件但它不起作用,请帮助我..我的编码是
$baseurl = "http://localhost/erp";
$html = '<style>'.file_get_contents($baseurl.'css/bootstrap.min.css').'</style>';
$html = '<style>'.file_get_contents($baseurl.'css/style.css').'</style>';
首先 - Bootstrap
使用 js
脚本进行工作;如您所知,脚本无法在 tcpdf
文件中运行;
不仅如此 - tcpdf
不允许所有 CSS 属性;我在 official documentation, but this can help;
中找不到支持的 css 列表
我使用 bootstrap css 设计了发票,我使用 tcpdf 设计了发票。我调用了 bootstrap css 文件但它不起作用,请帮助我..我的编码是
$baseurl = "http://localhost/erp";
$html = '<style>'.file_get_contents($baseurl.'css/bootstrap.min.css').'</style>';
$html = '<style>'.file_get_contents($baseurl.'css/style.css').'</style>';
首先 - Bootstrap
使用 js
脚本进行工作;如您所知,脚本无法在 tcpdf
文件中运行;
不仅如此 - tcpdf
不允许所有 CSS 属性;我在 official documentation, but this can help;