dsflxcfuw27742248 2015-04-07 09:23
浏览 60
已采纳

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

When I Use print option . The Date has been displayed Top left corner Like this 4/7/2015. And the URL has been displayed in bottom left corner like this
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;
}
  • 写回答

2条回答 默认 最新

  • dspld86684 2015-04-07 09:33
    关注

    Oh This problem can fix at browser in the option -> headers and footers !

    enter image description here

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 企业资源规划ERP沙盘模拟
  • ¥15 树莓派控制机械臂传输命令报错,显示摄像头不存在
  • ¥15 前端echarts坐标轴问题
  • ¥15 CMFCPropertyPage
  • ¥15 ad5933的I2C
  • ¥15 请问RTX4060的笔记本电脑可以训练yolov5模型吗?
  • ¥15 数学建模求思路及代码
  • ¥50 silvaco GaN HEMT有栅极场板的击穿电压仿真问题
  • ¥15 谁会P4语言啊,我想请教一下
  • ¥15 这个怎么改成直流激励源给加热电阻提供5a电流呀