如何在jqgrid的标题标题网格处隐藏边框? [英] How to hide border at header title grid in jqgrid?

查看:22
本文介绍了如何在jqgrid的标题标题网格处隐藏边框?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 jqgrid 的标题标题网格处隐藏边框?例如:colNames:['Name','Address','School']

How to hide border at header title grid in jqgrid? for examples : colNames:['Name','Address','School']

推荐答案

如果我理解你是正确的,你希望有以下列标题

If I understand you correct you want to have the following column headers

代替标准

在情况下可以使用透明边框:

In the case can use transparent borders:

<style type="text/css">
    th.ui-th-column { border-right-color: transparent !important }
</style>

查看相应的演示这里.该演示仍然在列标题中显示悬停效果:

see the corresponding demo here. The demo still display the hovering effect in the column headers:

已更新:如果您不想使用 !important 属性,您可以使用以下替代方法

UPDATED: If you don't want to use !important attribute you can use the following alternative

.ui-jqgrid-labels .ui-th-column { border-right-color: transparent }

这篇关于如何在jqgrid的标题标题网格处隐藏边框?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆