douren4075 2016-06-03 02:17
浏览 23

colspan不在数据表中工作?

i have a table and i'm using datatables and its working without any colspan added to it..but when i try to add a colspan on the last column the filtering, searching and pagination are all not showing..how can i supposed to work it out.please help me..

here is my code

CSS

.table_wrapper{
    margin-top:5px;
    max-width:100%;
    width:100%;
    margin-bottom:60px;
    overflow:hidden;
    -webkit-box-shadow: 0 8px 30px -6px black;
    -moz-box-shadow: 0 8px 30px -6px black;
    box-shadow: 0 8px 30px -6px black;
    border: 3px dashed red;
    height:600px;

}
.datatables{
    border-collapse:collapse;
    margin-right: auto;
    margin-left: auto;
    font-size: 13px;
}
thead th{
    background-color:#6a782a;
    color:#FFF;
    padding-left: 10px;
    padding-right: 10px;
}

tbody td{
word-wrap: break-word;
}

HTML

<div class="table_wrapper">
    <table class="datatables table-striped" width="100%">
        <thead>
             <tr>
                <th>LHID</th>
                <th>LO Name</th>
                <th>Province</th>
                <th>Municipality</th>
                <th>Barangay</th>
                <th>Title Number</th>
                <th>Lot Number</th>
                <th>Survey Number</th>
                <th>Area</th>
                <th>RLBET Action</th>
                <th>Reasons</th>
                <th colspan="2">Action</th>
            </tr>
        </thead>
        <tbody>
                <?php
                    //$query = "SELECT * FROM login";
                    echo $LTID->viewdetails();

                 ?>
        </tbody>
    </table>
</div>
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥100 set_link_state
    • ¥15 虚幻5 UE美术毛发渲染
    • ¥15 CVRP 图论 物流运输优化
    • ¥15 Tableau online 嵌入ppt失败
    • ¥100 支付宝网页转账系统不识别账号
    • ¥15 基于单片机的靶位控制系统
    • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
    • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
    • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
    • ¥15 手机接入宽带网线,如何释放宽带全部速度