【问题标题】:Sphinx: how to set the color of visited links (sphinx_rtd_theme)Sphinx:如何设置访问链接的颜色(sphinx_rtd_theme)
【发布时间】:2019-06-30 11:02:27
【问题描述】:

我目前正在使用sphinx_rtd_theme 创建一个 Sphinx 文档。我想知道如何更改已访问链接的颜色。

到目前为止,我只发现了使用 classic 主题的可能性(使用 conf.py 文件中的 html_theme_options)。但是我需要使用 sphinx_rtd_theme.

我猜有可能使用本地 css 文件(在 _static 中)。例如,我已经使用了一个 css 文件来指定主题颜色:

.wy-side-nav-search, .wy-nav-top {
    background: #0b750a;
}

有什么提示吗?

【问题讨论】:

  • 能否请您也添加 HTML,如果可能,链接到 jsFiddle?

标签: css colors hyperlink python-sphinx


【解决方案1】:

解决了,很容易(...)。我只需要在我的 css 文件中添加这个:

a:visited {
  color: blue;
}

【讨论】:

    猜你喜欢
    • 2013-01-04
    • 1970-01-01
    • 2015-02-10
    • 2010-12-28
    • 2013-01-02
    • 1970-01-01
    • 2016-11-24
    • 1970-01-01
    • 2012-05-06
    相关资源
    最近更新 更多