2

我对在 jQuery DataTable中使用 CSS 感到困惑。他们提供了许多 CSS,但在示例中他们只使用了 1 或 2 个。 (DataTable 下载)

所以我的问题是这个css在数据表中的用途或区别是什么。我搜索了它,但我没有得到相关的答案。

 1. demo_page                     // ?
 2. demo_table                    // ?
 3. demo_table_jui                // ?
 4. jquery.dataTables             // ?
 5. jquery.dataTables_themeroller // To include jQuery UI theme.  
4

1 回答 1

2
  • 如果您只想使用基本样式作为 datables.net 的示例,您可以使用4.jquery.dataTables.css.

  • 如果你想使用 jquery ui,你可以包括3.demo_table_jui.css- 这是 jquery ui 平滑度主题,浅灰色。

    (如果您的站点已经包含来自 jqueryui.com 的 jquery ui css 文件,则无需使用3.demo_table_jui.css)。

  • 如果您想使用 jquery themeroller(如http://www.datatables.net/styling/themes)动态更改样式,还包括5.jquery.dataTables_themeroller.css.

  • 您可以离开1.demo_page2.demo_table,它们仅用于演示表格样式。

这个 css 文件在文件顶部也有它的描述。

于 2013-07-04T06:26:28.040 回答