TCPDF not render all CSS properties

后端 未结 10 1830
不思量自难忘°
不思量自难忘° 2020-12-05 09:15

I try to make a PDF writing CSS and HTML but my CSS doesn\'t appear in my PDF. The only thing considered is the font-size and font-color.

I give you the code (sorry,

10条回答
  •  佛祖请我去吃肉
    2020-12-05 10:22

    I recently ran into the same problem, and found a workaround though it'll only be useful if you can change the html code to suit.

    I used tables to achieve my padded layout, so to create the equivalent of a div with internal padding I made a table with 3 columns/3 rows and put the content in the centre row/column. The first and last columns/rows are used for the padding.

    eg.

         
      content goes here  
         

    Hope that helps.

    Joe

提交回复
热议问题