【问题标题】:jqGrid + twitter bootstrap (2.1.0): navbar changes stylejqGrid + twitter bootstrap (2.1.0):导航栏改变风格
【发布时间】:2012-09-05 16:07:43
【问题描述】:

我正在想办法解决这个问题,但我似乎无法找到解决方案。

我正在使用 jqGrid 4.4.1 (jQuery UI 1.8.23),我刚刚开始使用 twitter bootstrap。
正如您在 fiddle 中看到的那样,导航栏很乱。
页面选择器元素比应有的长得多。
这是带有 jqGrid 的 fiddle,没有 twitter 引导程序。

有没有人可以帮助我解决这个问题?
还有其他我应该注意的问题吗?

感谢您的帮助。

【问题讨论】:

标签: jquery jqgrid twitter-bootstrap


【解决方案1】:

我认为您应该包含其他 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
}

​见http://jsfiddle.net/ZHRaD/14/

更新:来自the answerThe demo 显示如何使用Font Awesome icons。这可能是你想要的。

【讨论】:

  • 谢谢奥列格。你的 CSS 完成了这项工作。希望我不会发现其他一些功能有任何问题。
猜你喜欢
  • 2013-09-27
  • 2013-09-18
  • 1970-01-01
  • 2015-08-13
  • 1970-01-01
  • 2012-10-16
  • 1970-01-01
  • 1970-01-01
  • 2018-01-24
相关资源
最近更新 更多