【问题标题】:jQuery DataTables and IE/Chrome/Safari: table overlaps footer instead of pushing it downjQuery DataTables 和 IE/Chrome/Safari:表重叠页脚而不是向下推
【发布时间】:2011-09-17 04:40:41
【问题描述】:

这只发生在 Google Chrome 和 Safari 上(在 Firefox 上不是问题)。

如果我有包含多行数据的表格,它最终会扩大表格的高度 - 然后不是向下推包含我的页脚的 DIV,而是表格实际上与页脚重叠。在 Firefox 上,页脚按我的预期被下推。

谁能给我建议如何解决这个问题? 很高兴能包含具体的代码——整体结构如下:

<div>
    <div id="main">

        //datatables being built here

    </div>
    <div id="footer">

        //footer code here

    </div>
</div>

【问题讨论】:

    标签: jquery css webkit datatables


    【解决方案1】:

    你有一些代码给我们看吗?

    可能很简单:

    #main {
    float: left;
    clear: both;
    }
    
    or 
    
    #main table {
    float: left;
    clear: both;
    }
    

    【讨论】:

    • 感谢@wes - 一个简单的float:left 在应用于.dataTables_wrapper 时成功了
    猜你喜欢
    • 2011-12-23
    • 1970-01-01
    • 2011-07-21
    • 1970-01-01
    • 2011-04-14
    • 1970-01-01
    • 2020-03-29
    • 1970-01-01
    • 2011-02-20
    相关资源
    最近更新 更多