简体   繁体   English

PHP-打印没有URL和日期的页面

[英]PHP- Print The page without url and Date

When I Use print option . 当我使用打印选项时。 The Date has been displayed Top left corner Like this 4/7/2015. 已显示日期。左上角像这样的4/7/2015。 And the URL has been displayed in bottom left corner like this URL像这样显示在左下角
http://localhost/sam/abn/add_new_rec.php?type=1 . http://localhost/sam/abn/add_new_rec.php?type = 1 I need only my receipt. 我只需要我的收据。 But not this date and url. 但不是这个日期和网址。 Friends plz help me to Hide this.. 朋友请帮我隐藏这个。

function go1()
{
var w = window.open('', '', 'width=800,height=600,resizeable,scrollbars');
 w.document.write($("#printthis").html());
 w.document.close(); // needed for chrome and safari
 javascript:w.print();
 w.close();
 return false;
}

is this issue same here ? 这个问题在这里吗? Remove header and footer from window.print() 从window.print()删除页眉和页脚

or you just didn't uncheck to not include header and footer on your browser ? 或者您只是没有取消选中不在浏览器中包含页眉和页脚?

Oh This problem can fix at browser in the option -> headers and footers ! 哦,这个问题可以在浏览器的->页眉和页脚选项中解决!

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM