Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在为在线社区创建一个打印样式表。样式表没有问题,除了... safari 和 firefox 似乎正在添加一个包含链接 url 的元素(不知道 ie 尚未)。
我想要一个没有链接网址的列表的“干净”打印输出,任何关于如何摆脱它们的想法。(不建议在非链接元素中包含文本;-)
好的伙计们,对不起......只是一个供将来参考的答案......
这可以重置链接样式:-)
a, a:after { content: normal !important; }
safari 和 firefox 通过属性选择器捕获 url 来设置链接的样式,在 web 检查器中检查细节,但我猜它是这样的:a[href=""]:after{content:""},你可以通过设置覆盖它a[href=""]:after{display:none}
a[href=""]:after{content:""}
a[href=""]:after{display:none}