把iview的table做成更適合展現大量數據的樣式(字體變小、去除多余的padding等)


<style>
    .ivu-table {
        font-size: 12px !important;
    }

    .ivu-table-header thead tr th {
        padding: 0px !important;
        height: 26px;
        line-height: 26px;
    }

    .ivu-table-fixed-header thead tr th {
        padding: 0px !important;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
    }

    .ivu-table-fixed-right-header {
        height: 29px !important;
    }

    .ivu-table-cell {
        white-space: nowrap !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .ivu-table td, .ivu-table th {
        height: 26px;
        line-height: 26px;
    }
</style>

 

            let ele = this.$el;
            this.height = ele.clientHeight;
            this.width = ele.clientWidth;
            this.showTable = true;
            window.onresize = () => {
                this.showTable = false;
                this.$nextTick(() => {
                    this.height = ele.clientHeight;
                    this.width = ele.clientWidth;
                    this.showTable = true;
                })
            }

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



猜您在找 iview table 表頭樣式修改 哪種方式更適合在React中獲取數據? 看板與Scrum:哪個更適合你的團隊? Tomcat 和 Resin 比較,哪個更適合你? 通過css樣式去除 java的5個框架,哪個框架更適合你的項目? java的5個框架,哪個框架更適合你的項目? 使用vue vantUi框架 根字體是37.5 和默認根字體75不一致,導致頁面組件樣式變小 modSecurity和Naxsi哪個更適合Nginx搭建WAF
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM
標簽的外邊框 為什么 char 數組比 String 更適合存儲密碼?