remove url and print text from the printed page

前端 未结 4 1161
一向
一向 2020-12-17 00:45

I have developed a web application and in my web page there are some data displays with common headers, footers , menus and other images. so I have added a small button as

4条回答
  •  -上瘾入骨i
    2020-12-17 01:27

    If you're using bootstrap, find following code:

     @media print {
      ...
      a[href]:after {
        content: " (" attr(href) ")";
      }
      ...
    }
    

    Overriding the style with content:none handles the situation fine.

    Reference: this url

提交回复
热议问题