How to “print” to a paper in PHP?

后端 未结 5 1677
难免孤独
难免孤独 2021-01-14 03:17

What I mean is, lets say I have a content:

\"Stackoverflow is the best, bla bla bla...\"

I want to print the content in a paper, not computer monitor, how to

5条回答
  •  悲&欢浪女
    2021-01-14 03:40

    Use javascript for this

    window.print();
    

    window.print(): Opens the Print Dialog to print the current document.

自定义标题
段落格式
字体
字号
代码语言
提交回复
热议问题