我想显示数据库中的所有图像,但是我只能显示一个

时间:2018-10-03 06:15:23

标签: php html css slider jssor

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script>

<table>
  <tr>

    <td class="col-nome">Ixpira</td>
    <td><span class="badge badge-success">Live</span></td>
  </tr>
  <tr>

    <td class="col-nome">SunHotels</td>
    <td><span class="badge badge-success">Live</span></td>
  </tr>
  <tr>
    <td class="col-nome">World 2 Meet [W2M]</td>
    <td><span class="badge badge-success">Live</span></td>
  </tr>
  <tr>

    <td class="col-nome">ImperatoreTravel.it</td>
    <td><span class="badge badge-success">Live</span></td>
  </tr>
</table>
<br />
<input type="text" id="search" placeholder="  live search"></input>

我想显示数据库中的所有图像,但是我只能显示一个图像

1 个答案:

答案 0 :(得分:0)

要创建多个幻灯片,您将渲染多个div。

<div data-u="slides" style="cursor:default;position:relative;top:0px;left:0px;width:1350px;height:800px;overflow:hidden;">
    <div>
        <img data-u="thumb" src="<?php echo base_url(); ?>rg_admin/uploads/<?php  echo $row->image_name; ?>" />
    </div>
    <div>
        <img data-u="thumb" src="<?php echo base_url(); ?>rg_admin/uploads/<?php  echo $row->image_name; ?>" />
    </div>

</div>