css - 狮身人面像中的左对齐表格标题
问题描述
有没有办法在 Sphinx 输出中左对齐表格标题(使用 sphinx_rtd_theme)?
自定义 css 包含在 conf.py 中:
def setup(app):
app.add_stylesheet('_static/custom.css')
这是有效的:
.wy-nav-content {
max-width: none;
}
这些都不起作用:
.caption {
align:left
}
或者
.caption-text {
align:left
}
是否可以通过自定义css?
解决方案
使用正确的 CSS 语法来对齐文本:
.caption-text {
text-align: left;
}
推荐阅读
- php - Wordpress 中的当前级别导航
- swift - NSURLErrorDomain:-1003
- prestashop-1.7 - 我无法在没有登录的情况下查看类别
- aem - 如何在待机模式下修复 AEM Author 上的“handleLoginFailure”
- angular - 角 | 如何以另一个组件的形式显示对象
- javascript - 在具有相同变量名的函数内部提升
- amazon-web-services - 在负载平衡的 Aws Beanstalk 上安装 ghostscript
- node.js - 使用 react 构建网站并使用 firebase 作为数据库,我还需要后端吗?(例如:Nodejs)
- python - 如何从文件中读取数组并将其分配给变量?
- asp.net - 在抛出“从客户端检测到潜在危险的 Request.Path 值”之前,ASP.NET 页面生命周期中是否存在任何位置