就目前而言,这个问题不适合我们的问答形式。我们希望答案得到事实、引用资料或专业知识的支持,但这个问题可能会引发辩论、争论、投票或扩展讨论。如果您觉得这个问题可以改进并可能重新打开,visit the help center寻求指导。
9年前关闭。
我正在工作的网站,我正在使用 CSS 框架 "推特 Bootstrap " .除此之外,我还使用 jqGrid 来显示网格数据,但问题是 jqGrid 依赖于 jQuery UI,这与 Bootstrap 样式冲突。有没有人成功地将 jqGrid 与 jQuery UI 和 Bootstrap 一起使用?
任何示例/链接都受到高度赞赏。
谢谢,
那仁
最佳答案
您可以将“数据表”用于 Bootstrap
http://www.datatables.net/blog/Twitter_Bootstrap_2
或者只是 Bootstrap 表样式
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
}
关于twitter-bootstrap - 用于 Twitter Bootstrap 的 jqGrid,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14954587/