Replies: 2 comments 1 reply
-
![]() |
Beta Was this translation helpful? Give feedback.
0 replies
-
AI真的太聪明了。。。 在你的 CSS 中有这样的样式: #write a::after {
content: "";
display: inline-block;
vertical-align: middle;
width: 1.1em;
height: 1.1em;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23c94ae9'%3E%3Cpath d='M19 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z'/%3E%3C/svg%3E");
} 这个 SVG 图标在 PDF 导出时被渲染为实际图像。 解决方案 /* PDF 导出时隐藏链接图标 */
@media print {
#write a::after {
display: none !important;
content: none !important;
}
/* 同时确保标题中的链接没有额外图标 */
h1 a::after, h2 a::after, h3 a::after,
h4 a::after, h5 a::after, h6 a::after {
display: none !important;
content: none !important;
}
}``` |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
导出为pdf的时候,大小标题尾部都会多一个紫色的符号:

这个怎么去掉呢?
Beta Was this translation helpful? Give feedback.
All reactions