简体   繁体   English

如何在Ext JS网格面板中删除标题边框?

[英]How can I remove a header border in an Ext JS grid panel?

I have a grid panel and I want to fully hide the header. 我有一个网格面板,我想完全隐藏标题。 I'm using the hideHeaders: true configuration option but it still leaves a faint 1px blue border where the header was. 我正在使用hideHeaders: true配置选项,但它仍然在标题所在的位置留下一个模糊的1px蓝色边框。 How can I not have that 1px blue header? 我怎么没有那个1px的蓝色标头?

This is a JSFiddle showing the problem. 这是显示问题的JSFiddle

看起来如何 vs 我希望它看起来如何

I know it seems like a subtle difference but in my application that border looks really bad. 我知道这似乎是微妙的区别,但是在我的应用程序中,边框看起来确实很糟糕。 I thought this would fully remove the header but it didn't: 我以为这会完全删除标题,但没有:

Ext.create('Ext.grid.Panel', {
    store: store,
    hideHeaders: true
});

I'm using this sass block to style my column headers: 我正在使用此sass块来设置列标题的样式:

.x-grid-header-ct{
    border-bottom: 1px solid #ecedee;
    padding-left: 15px;
    .x-column-header {
        border: none;
        background: none;
        .x-column-header-inner{
            padding: 10px 15px 15px 7px;
            &:before{
                border: none;
            }
            .x-column-header-text{
                color: #222;
                white-space: normal;
                font-size: 18px;
            }
        }
        .x-column-header-over{
            background: none;
            .x-column-header-trigger{
                display: none;
                background-color: white;
            }
        }
        .x-column-header-inner-empty{
            background: none;
        }
    }
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM