简体   繁体   English

数据表的动态布局

[英]Dynamic Layout of Data Table

After implementing data table, my modal is shown at the bottom of the page, As data table height is depends on the number of data.实现数据表后,我的模态显示在页面底部,因为数据表的高度取决于数据的数量。 I have tried this function but it doesn't work我试过这个功能,但它不起作用

"initComplete": function(){
                            $('#full-width').addClass('modal-overflow')
                            $('#full-width').css('margin','10%')
                        }

You are mistaken with css please try this.你误用了css,请试试这个。

"initComplete": function(){
                            $('#full-width').addClass('modal-overflow')
                            $('#full-width').css('margin-top','10% !important')
                        }

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

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