Print a website without printing the link locations?

后端 未结 13 878
难免孤独
难免孤独 2020-12-15 03:26

I\'m invoking the navigator print function using a simple window.print(); call. It prints perfect (I want to print the same I see on the screen, so I don\'t really use a spe

13条回答
  •  情歌与酒
    2020-12-15 04:08

    My app server (rails) required me to use a parent selector. The body element is perfect for selecting what should be the entire page.

    body a:link:after, body a:visited:after {    
      content: "";
    }
    

提交回复
热议问题