问题描述
我无法在mpdf中使用页面选择器,因为页面会由于文本长度而自动添加。我可以使用CSS到特定页面吗?例如类似@page:nth-childs(3)的东西?谢谢!
解决方法
不。仅表元素支持::nth-child
伪选择器。
https://mpdf.github.io/css-stylesheets/supported-css.html
当前无法更改mPDF中特定页码的CSS。
我无法在mpdf中使用页面选择器,因为页面会由于文本长度而自动添加。我可以使用CSS到特定页面吗?例如类似@page:nth-childs(3)的东西?谢谢!
不。仅表元素支持::nth-child
伪选择器。
https://mpdf.github.io/css-stylesheets/supported-css.html
当前无法更改mPDF中特定页码的CSS。