数据表列超过

时间:2018-08-06 05:22:36

标签: php jquery datatables

我有大约39列的庞大数据集。现在,数据表已超出浏览器的显示区域。 行没有问题,因为它们是基于分页列出的。数据表有包装属性吗?我想在同一浏览器空间中显示所有列

我的数据表列是

<table id='datatable' class="ui celled table" style='width:100%'>
    <thead>
        <tr>
            <th>DeviceID</th>
            <th>AppID</th>
            <th>IsFingerprint</th>
            <th>CurrentDate</th>
            <th>IsSDCard</th>
            <th>NetworkType</th>
            <th>TotalRAM</th>
            <th>AvailInternal</th>
            <th>AvailExternal</th>
            <th>TotalInternal</th>
            <th>TotalExternal</th>
            <th>Activity</th>
            <th>Package</th>
            <th>AppStore</th>
            <th>AppName</th>
            <th>AppVersion</th>
            <th>AppVersionCode</th>
            <th>BatteryCharge</th>
            <th>IsCharging</th>
            <th>Manufacturer</th>
            <th>Model</th>
            <th>OSCodename</th>
            <th>OSVersion</th>
            <th>Product</th>
            <th>Device</th>
            <th>Board</th>
            <th>Hardware</th>
            <th>Rooted</th>
            <th>Brand</th>
            <th>Host</th>
            <th>Time</th>
            <th>User</th>
            <th>ScreenResolution</th>
            <th>ScreenDensity</th>
            <th>ScreenSize</th>
            <th>Country</th>
            <th>Carrier</th>
            <th>ActiveTraffic</th>
            <th>AppUsage</th>
            <th>Image</th>
        </tr>
    </thead>
    <tfoot>
        <tr>
            <th>DeviceID</th>
            <th>AppID</th>
            <th>IsFingerprint</th>
            <th>CurrentDate</th>
            <th>IsSDCard</th>
            <th>NetworkType</th>
            <th>TotalRAM</th>
            <th>AvailInternal</th>
            <th>AvailExternal</th>
            <th>TotalInternal</th>
            <th>TotalExternal</th>
            <th>Activity</th>
            <th>Package</th>
            <th>AppStore</th>
            <th>AppName</th>
            <th>AppVersion</th>
            <th>AppVersionCode</th>
            <th>BatteryCharge</th>
            <th>IsCharging</th>
            <th>Manufacturer</th>
            <th>Model</th>
            <th>OSCodename</th>
            <th>OSVersion</th>
            <th>Product</th>
            <th>Device</th>
            <th>Board</th>
            <th>Hardware</th>
            <th>Rooted</th>
            <th>Brand</th>
            <th>Host</th>
            <th>Time</th>
            <th>User</th>
            <th>ScreenResolution</th>
            <th>ScreenDensity</th>
            <th>ScreenSize</th>
            <th>Country</th>
            <th>Carrier</th>
            <th>ActiveTraffic</th>
            <th>AppUsage</th>
            <th>Image</th>
        </tr>
    </tfoot>
</table>

我使用 AJAX 从我的 PHP API 端点加载数据,并且工作正常。 有没有办法合并 AppName,AppPackage,AppVersion,AppVersionCode 之类的单元格

0 个答案:

没有答案