How to use flexboxgrid with wicked_pdf?

倾然丶 夕夏残阳落幕 提交于 2019-12-13 20:22:41

问题


I need to convert a .haml view to .pdf using wicked_pdf (or another), the problem is ... I use flexboxgrid (try BootstrapGrid before but it does not work), the columns (.col-xs- *) do not work as it. Should idea?


回答1:


wicked_pdf uses wkhtmltopdf to do the rendering, which right now is approximate to a very old version of Chrome/Chromium (like v. 13 or so), which doesn't support Flexbox. You'll likely need to add and load a pdf-specific stylesheet to tweak the layout using non-flexbox CSS directives.



来源:https://stackoverflow.com/questions/53638647/how-to-use-flexboxgrid-with-wicked-pdf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!