PHP- 打印没有 url 和日期的页面
PHP- Print The page without url and Date
当我使用打印选项时。日期已显示在左上角,例如 4/7/2015。而URL已经显示在左下角,像这样
http://localhost/sam/abn/add_new_rec.php?type=1。我只需要我的收据。但不是这个日期和 url。朋友们请帮我隐藏这个..
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;
}
这个问题和这里一样吗? Remove header and footer from window.print()
或者您只是没有取消选中以在浏览器中不包含页眉和页脚?
哦这个问题可以在浏览器选项->页眉和页脚中解决!
当我使用打印选项时。日期已显示在左上角,例如 4/7/2015。而URL已经显示在左下角,像这样
http://localhost/sam/abn/add_new_rec.php?type=1。我只需要我的收据。但不是这个日期和 url。朋友们请帮我隐藏这个..
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;
}
这个问题和这里一样吗? Remove header and footer from window.print()
或者您只是没有取消选中以在浏览器中不包含页眉和页脚?
哦这个问题可以在浏览器选项->页眉和页脚中解决!