javascript to print contents of only specific

前端 未结 2 1195
隐瞒了意图╮
隐瞒了意图╮ 2021-01-05 05:39

I have tried javascript window.print() It prints the full page content including the print button on the page.

2条回答
  •  忘掉有多难
    2021-01-05 06:40

    You require to create new style sheet print.css and set CSS media=print

    for example :

    
    
    
    

    for more detail : Print a doument with CSS

提交回复
热议问题