Print a website without printing the link locations?

后端 未结 13 897
难免孤独
难免孤独 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条回答
  •  猫巷女王i
    2020-12-15 04:03

    I found the mentioned CSS and removed it but it did not help, and I couldn't find it anywhere else in the project so I used jQuery to remove the links but still retain the text.

    $('a[title="Show Profile"]').contents().unwrap();
    

    More info here Remove hyperlink but keep text?

提交回复
热议问题