Zurb Foundation打印样式 - 如何禁用打印时出现在锚点旁边的URL?

Pat*_*nes 5 css zurb-foundation

当我打印我的页面时,实际的URL出现在每个锚标签旁边,这在面包屑或页脚链接中看起来很奇怪.使用Zurb Foundation 5时,禁用此行为的适当方法是什么?或者,如果有一种我可以用来覆盖这种行为的CSS样式,那也很棒.

您可以在此处查看其文档中的行为描述:http: //foundation.zurb.com/docs/components/typography.html#print-styles

Tod*_*odd 5

这是由添加到属性选择器的伪元素引起的; 可能是这样的:

a[href*="/"]:after, a[href*="/"]:visited:after {content: "("attr(href)")";}
Run Code Online (Sandbox Code Playgroud)

您很可能通过重置伪元素的内容来覆盖它.

尝试将以下内容添加到打印样式表:

a[href*="/"]:after, a[href*="/"]:visited:after {content: normal;}
Run Code Online (Sandbox Code Playgroud)