我在ReST标记中有此表:
+---------------------------+-----------------------------------------------------------------+
| Option Line Kind | Distinguishing Characteristic |
+===========================+=================================================================+
| **Reference** | The option name is called a (node) reference, if the value\ |
| | of an option is a predefined keyword for the current node\ |
| | class. Because the option's value is a keyword, it can not\ |
| | be an interpolated value. |
+---------------------------+-----------------------------------------------------------------+
| **Option** | The option uses a defined option name valid for the current\ |
| | node class. The value can be a fixed or interpolated string. |
+---------------------------+-----------------------------------------------------------------+
| **User Defined Variable** | Otherwise an option line is a user defined variable. It can\ |
| | have fixed or interpolated string values. |
+---------------------------+-----------------------------------------------------------------+
Sphinx(ReadTheDocs主题)生成一个水平滚动条,而不是破坏第2列中的内容。结果是这样的混乱:
我需要在ReST(或RTFD主题??)中进行什么更改才能使其中断文本?
编辑:
@ aflp91的答案显示在此表中:
最佳答案
使用_static / custom.css文件添加
.wy-table-responsive table td {
white-space: normal;
}
不要忘记将其声明为conf.py:
def setup(app):
app.add_stylesheet('custom.css')
在我的测试中有效…
关于html - 如何避免在ReST表中使用水平滚动条?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/40641252/