Home  >  Q&A  >  body text

javascript - When js calls the printer and prints to PDF format, why does the background color of the table not print? Is there a solution?

代码如下:
<p>
    <button onclick="window.print()">保存为PDF</button>
</p>
欧阳克欧阳克2686 days ago1036

reply all(1)I'll reply

  • 三叔

    三叔2017-06-12 09:34:24

    The background color can be set before calling printing. Reference http://m.blog.csdn.net/articl...

    reply
    0
  • Cancelreply