如何在jqgrid中的标题栏隐藏边框?
问题描述:
如何在jqgrid中的标题栏隐藏边框? 例如:colNames:['名称','地址','学校']
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
代替标准
在可以使用transparent
边框的情况下:
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 }