ResponsiveSlides不适用于PHP回显内容

时间:2014-02-01 21:45:14

标签: php list echo out

我正在努力为我的图片滑块制作ResponsiveSlides。问题是,它根本就没有显示图像。图像链接有效。我不知道。也许有些想法?它可以工作,如果我手动创建列表,但如果没有回应出来。 Scrip

  `<div class="wrapper">
    <ul class="rslides">
        <?php
            $images = get_images_by_id($_GET['subj']);
            while($image = $images->fetch(PDO::FETCH_ASSOC)){
            echo '<li src="images/'. $image['new_name'] . '"></li>';
            }
        ?>
    </ul>
 </div>

`在浏览器中我回来了

  <div class="wrapper">
    <ul class="rslides rslides1">
      <li id="rslides1_s0" class="rslides1_on" src="images/5uldreonzj1k74tfmaigch6vw39spb80q2.jpg" style="display: block; float: left;   position: relative; opacity: 1; z-index: 2; transition: opacity 500ms ease-in-out 0s;"></li>
      <li id="rslides1_s1" class="" src="images/54ti98jgrw6ndf7vakpou1zqe3b0lmsh2c.jpg" style="float: none; position: absolute; opacity: 0; z-index: 1; display: list-item; transition: opacity 500ms ease-in-out 0s;"></li>
      <li id="rslides1_s2" class="" src="images/iw5cltnpk783g6jmzbfu1vd24qa9hr0ose.jpg" style="float: none; position: absolute; opacity: 0; z-index: 1; display: list-item; transition: opacity 500ms ease-in-out 0s;"></li>
   </ul>
  </div>

0 个答案:

没有答案