dtpd58676 2019-02-01 14:37
浏览 33

dompdf没有获得部分视图的CSS

When I try to expord a pdf file using dompdf, it shows a plain text with no format. In the view, it takes perfectly the css classes from bootstrap but when it generates the pdf, its just plain text.

the only way it works, is applying styles directly to that partial view using an <style></style> tag.

<div class="panel-body"> @if (isset($user)) @include('_pdf') <a href="{{ route('register.export', $user) }}" class="btn btn-danger pull-right" target="_blank"> <span class="glyphicon glyphicon-save-file"></span> Export </a> @endif </div>

it wont make any of bootstrap css

  • 写回答

0条回答 默认 最新

    报告相同问题?