18

我正在工作的网站,我正在使用 CSS 框架"Twitter Bootstrap"。除此之外,我还使用 jqGrid 来显示网格数据,但问题是 jqGrid 依赖于 jQuery UI,这与 Bootstrap 样式冲突。有没有人成功地将 jqGrid 与 jQuery UIBootstrap 一起使用?

任何示例/链接都受到高度赞赏。

谢谢,纳伦

4

1 回答 1

16

您可以将“数据表”用于 Bootstrap

http://www.datatables.net/blog/Twitter_Bootstrap_2

或者只是引导表样式

http://twitter.github.com/bootstrap/base-css.html#tables

但是如果你还是想使用 jqGrid,你必须添加那个 css 类来解决一些样式冲突

input.ui-pg-input {
    width: auto;
    padding: 0px;
    margin: 0px;
    line-height: normal
}
select.ui-pg-selbox {
    width: auto;
    padding: 0px;
    margin: 0px;
    line-height: normal
}
于 2013-02-19T15:46:30.207 回答