使用mPDF 8.0.x.$mpdf->WriteHTML($css, \Mpdf\HTMLParserMode::HEADER_CSS);.mySpan将所有内容添加到表格单元格中,在“开始文本”之后添加:
<span class="mySpan">My text that should have paddings around</spa
我正在搜索仅将样式应用于特定区域的内容: <style scoped type="text/css">/* some-- the actual content - only affected by the style definitions above -->I ,但由于某些原因,它不适用于我-所有其他样式