python-sphinx - 狮身人面像不尊重 :widths: 表格的属性(rtd-theme)
问题描述
我使用以下语法为 sphinx 声明一个表:
.. list-table::
:header-rows: 1
:widths: 1 1 2
* - Platzhalter
- Beispiel
- Beschreibung
* - <from_date>
- <from_date>
- ...
但是 Sphinx 只是以某种方式忽略了 widths 属性,如下所示:
该表显然不符合我的要求。我怎样才能解决这个问题?
注意:我正在使用阅读文档主题,我不得不把
.wy-table-responsive table td,
.wy-table-responsive table th {
white-space: normal;
}
进入我的 layout.html 以使表格尊重 div 边框。也许与此有关。如果我省略了这个选项,我只会得到一个滚动条,这也不是很好:/
解决方案
推荐阅读
- node.js - 如何使用云功能在 Firestore 中输入数据?
- angularjs - 切换单选按钮时使用 angularjs 显示不同的内容
- ios - 架构 x86_64 的未定义符号:“_OBJC_METACLASS_$_GMVDetector”引用自:TextDetector
- jquery - 可重复使用的引导模式以确认删除
- spring - 引起:java.lang.NoClassDefFoundError: org/springframework/boot/bind/RelaxedPropertyResolver - 微服务
- javascript - 带有服务器端数据表的空 ajax 返回
- android - Smack 4.2.4 版:资源限制 - 等待
- r - 使用 data.table 中的“:=”将值分配给子集上的多个列
- c# - 如何通过使用 linq 或反射比较 2 个列表来获取更新或修改的列表记录
- gnuradio - 关于我的 GNU Radio 源代码块的采样率