Remove the default browser header and footer when printing HTML

后端 未结 5 1151
深忆病人
深忆病人 2020-11-27 23:13

I got an HTML with the .

The question I\'m trying to ask is:

  • Is there any way to remove the strings
5条回答
  •  野性不改
    2020-11-28 00:06

    Google Docs is now skirting around this issue by generating a PDF version of your document.

    If you are using Chrome, it will automatically open the PDF in a new tab and pop up the print dialog. Other browsers will prompt you to download the resultant file (which is not necessarily obvious behavior).

    While I don't find this to be an elegant solution, one should be able to recreate this fairly easily using most existing web technologies.

提交回复
热议问题