jquery - Jqgrid - 更大的标题栏

标签 jquery css jqgrid

我有一个 Jqgrid 表,我想要一个更大的标题栏。我尝试了一切,我的 ui.jqgrid.css 文件,但没有任何效果。我在该文件中有正常设置,例如:

   /*Grid*/
   .ui-jqgrid {position: relative;}
   .ui-jqgrid .ui-jqgrid-view {position: relative;left:0px; top: 0px; padding: .0em;  font-size:25px; }


   /* caption*/


    .ui-jqgrid .ui-jqgrid-titlebar {padding: .3em .2em .2em .3em; position: relative; border-left: 0px none;border-right: 0px none; border-top: 0px none; }
    .ui-jqgrid .ui-jqgrid-title { float: left; margin: .1em 0 .2em; }
    .ui-jqgrid .ui-jqgrid-titlebar-close { position: absolute;top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height:18px;}.ui-jqgrid .ui-jqgrid-titlebar-close span { display: block; margin: 1px; }
    .ui-jqgrid .ui-jqgrid-titlebar-close:hover { padding: 0; }



    /* header*/
    .ui-jqgrid .ui-jqgrid-hdiv {position: relative; margin: 0em;padding: 0em; overflow- x: hidden; border-left: 0px none !important; border-top : 0px none !important; border-right  : 0px none !important; height: 30px;}

   .ui-jqgrid .ui-jqgrid-hbox {float: left; padding-right: 20px;}
   .ui-jqgrid .ui-jqgrid-htable {table-layout:fixed;margin:0em;}
   .ui-jqgrid .ui-jqgrid-htable th {height:22px;padding: 0 2px 0 2px;}
   .ui-jqgrid .ui-jqgrid-htable th div {overflow: hidden; position:relative; height:17px;}
   .ui-th-column, .ui-jqgrid .ui-jqgrid-htable th.ui-th-column {overflow: hidden;white-space: nowrap;text-align:center;border-top : 0px none;border-bottom : 0px none;}
   .ui-th-ltr, .ui-jqgrid .ui-jqgrid-htable th.ui-th-ltr {border-left : 0px none;}
   .ui-th-rtl, .ui-jqgrid .ui-jqgrid-htable th.ui-th-rtl {border-right : 0px none;}
   .ui-first-th-ltr {border-right: 1px solid; }
   .ui-first-th-rtl {border-left: 1px solid; }
   .ui-jqgrid .ui-th-div-ie {white-space: nowrap; zoom :1; height:17px;}
   .ui-jqgrid .ui-jqgrid-resize {height:20px !important;position: relative; cursor :e-resize;display: inline;overflow: hidden;}
   .ui-jqgrid .ui-grid-ico-sort {overflow:hidden;position:absolute;display:inline; cursor: pointer !important;}
   .ui-jqgrid .ui-icon-asc {margin-top:-3px; height:12px;}
   .ui-jqgrid .ui-icon-desc {margin-top:3px;height:12px;}
   .ui-jqgrid .ui-i-asc {margin-top:0px;height:16px;}
   .ui-jqgrid .ui-i-desc {margin-top:0px;margin-left:13px;height:16px;}
   .ui-jqgrid .ui-jqgrid-sortable {cursor:pointer;}
   .ui-jqgrid tr.ui-search-toolbar th { border-top-width: 1px !important; border-top- color: inherit !important; border-top-style: ridge !important }
   tr.ui-search-toolbar input {margin: 1px 0px 0px 0px}
   tr.ui-search-toolbar select {margin: 1px 0px 0px 0px}

Jqgrid

预先感谢您的帮助。

最佳答案

您已经包含了来自 ui.jqgrid.css 的两行 CSS

.ui-jqgrid .ui-jqgrid-htable th div {overflow: hidden; position:relative; height:17px;}
.ui-jqgrid .ui-th-div-ie {white-space: nowrap; zoom :1; height:17px;}

因此,要增加列标题的高度,您可以使用另一个固定的 height 值,例如

.ui-jqgrid .ui-jqgrid-htable th div { height: 23px; }
.ui-jqgrid .ui-th-div-ie { height: 23px; }

或使用 height: auto 样式:

.ui-jqgrid .ui-jqgrid-htable th div { height: auto; }
.ui-jqgrid .ui-th-div-ie { height: auto; }

关于jquery - Jqgrid - 更大的标题栏,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14869739/

相关文章:

jquery - 禁用带有悬停意图的 # 链接的点击

CSS:在任意宽度的表格旁边 float div?

jquery - 打开响应菜单时在 Bootstrap 3 站点中覆盖内容区域

javascript - window.top.location.href 在 Microsoft Edge 浏览器中不起作用

php - 标签的奇怪 HTML 忽略

javascript - jqGrid 在页面加载时选择第一行

jqGrid 未加载数据

javascript - 需要根据dropdownlist的change事件加载jqgrid

jquery - 通过 jQuery 的文本字数限制

jquery - 如何为这个 jquery 函数添加一个暂停?