【发布时间】:2019-06-21 05:02:12
【问题描述】:
我想显示一组相邻的图像
<table id="datatable" class="table table-colored table-info">
<thead>
<tr >
<th>Product_Name</th>
<th>Image</th>
</tr>
</thead>
<tbody>
<?php while ($players_list=m ysqli_fetch_array($players_fun)) { ?>
<tr>
<td>
<?php echo $players_list[ 'product_name']; ?>
</td>
<td>
<div class="col-sm-4">
<img src=" <?php echo $players_list[ 'product_IMAGE']; ?>" >
</div>
</td>
</tr>
<?php }?>
</tbody>
</table>
这是我的桌子,我可以在每行显示 3-3 张图片吗?
其实我想利用数据表的搜索和排序功能..
【问题讨论】:
-
DataTables 不仅仅是简单的搜索和排序,有时实现搜索和排序比让 DataTables 做一些它不适合做的事情更容易。
标签: javascript php jquery datatables