如何用Sphinx制作斑马桌?或者如何将 jQuery 与 Sphinx 一起使用?
我认为 Sphinx 生成的表格不太漂亮,因为它为表格生成了以下 HTML 代码。
<table border="1" class="docutils">
<colgroup>
<col width="43%" />
<col width="29%" />
<col width="29%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Graph</th>
<th class="head">HIR</th>
<th class="head">AIR</th>
</tr>
</thead>
<tbody valign="top">
<tr><td>Graph</td>
<td>Circuit</td>
<td>System</td>
</tr>
</tbody>
</table>
我怎样才能变成漂亮的一张,比如斑马桌?
HTML生成的html具有jQuery,并且根据此站点,只需一行代码就有一个斑马表,但是我不知道如何使用jQuery来制作一个斑马表。
$("tr:nth-child(odd)").addClass("odd");
- 问:如何将 jQuery 与 Sphinx 一起使用?
- 问:还有其他方法可以让斑马桌与 Sphinx 一起使用吗?
I think the table generated from Sphinx is not pretty, as it produces the following HTML code for table.
<table border="1" class="docutils">
<colgroup>
<col width="43%" />
<col width="29%" />
<col width="29%" />
</colgroup>
<thead valign="bottom">
<tr><th class="head">Graph</th>
<th class="head">HIR</th>
<th class="head">AIR</th>
</tr>
</thead>
<tbody valign="top">
<tr><td>Graph</td>
<td>Circuit</td>
<td>System</td>
</tr>
</tbody>
</table>
How can I turn in into pretty one, for example, zebra table?
The HTML generated html has the jQuery, and according to this site, it's just one line of code to have a zebra table, but I'm not sure how to use jQuery to make a zebra table.
$("tr:nth-child(odd)").addClass("odd");
- Q: How to use jQuery with Sphinx?
- Q: Is there any other way to have a zebra table with Sphinx?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 doctools.js 添加以下代码
I add the doctools.js the following code