Many websites have the following rules in their stylesheet @media print rules:
a::after {content: " (" attr(href) ")";}
Copy after login
Copy after login
Copy after login
The purpose of this rule is to display the URL of the page hyperlink when printing.
But if you really don’t want to display this URL when printing, what should you do?
Reply to the discussion (solution)
a::after {content: " (" attr(href) ")";}
Copy after login
Copy after login
Copy after login
Wouldn’t it be enough to change it to this
a::after {}
Copy after login
Copy after login
Copy after login
a::after {}
Copy after login
Copy after login
Copy after login
a::after {content: " (" attr(href) ")";}
Copy after login
Copy after login
Copy after login
Just change it to this
a::after {}
Copy after login
Copy after login
Copy after login
I know this, but I want to print the web page , it’s not that I want to develop a web page.
What I want to ask is how I can simply override this rule when I use the browser to print the web page I am browsing.