Many websites have the following rules in their stylesheet @media print rules:
a::after {content: " (" attr(href) ")";}
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) ")";}
Wouldn’t it be enough to change it to this
a::after {}
a::after {}
a::after {content: " (" attr(href) ")";}
Just change it to this
a::after {}
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.
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn