我尝试使用 Quarto html,我想在将鼠标悬停在页面上的某些单词上时显示一些提示。但是,我有很多这样的提示,我不希望它们显示在页脚中,只有当将术语悬停在文档正文中时才显示。
我没有找到如何隐藏页脚的脚注。如果有必要,我可能会隐藏整个页脚。由于我有很多带有此类提示的术语,因此依赖 css 和 YAML 选项的解决方案优于每个提示都需要硬编码 html 的解决方案。
示例
.qmd
:
---
format:
html:
footnotes-hover: true
---
The following footnote is available on hovering^[This footnote should only be displayed when hovering the text, not in page footer.]
谢谢你!
您可以在此处使用 CSS 隐藏脚注部分。
---
format:
html:
footnotes-hover: true
css: style.css
---
The following footnote is available on hovering^[This footnote should only be displayed when hovering the text, not in page footer.]
样式.css
section#footnotes {
display: none !important;
}
#quarto-appendix.default {
border-top: none !important;
}