猫头鹰轮播中未显示图片

时间:2018-08-22 17:32:10

标签: php wordpress wordpress-theming owl-carousel owl-carousel-2

我创建了一个自定义的Divi子主题。我正在尝试为图像实现猫头鹰旋转木马滑块,但是由于某些原因,图像无法显示。我可以看到应该显示该框的轮廓,因此我认为它可以识别路径,但是我可能错了。这是我的Chrome开发者控制台中的问题图片:

enter image description here

这是我在.php文件中用来调用此代码的代码行:

<div class="clients owl-carousel owl-theme">
   <div class="thumbnail">
      <img src="http://127.0.0.1/wordpress/wp-content/uploads/2018/08/holoNike.png" alt="nike">
  </div>
    <div class="thumbnail">
        <img src="img/holoAns.png" alt="Nature">
    </div>

它显示带有alt文本的图像的错误,因为我还没有包含该图像,因此是错误的。尽管我不确定为什么它只显示我拥有的图像的空白图像轮廓(Nike徽标),但是路径应该是正确的(当我输入URL时,它也在本地主机中显示该图像)。有什么想法可能会出问题吗?谢谢。

0 个答案:

没有答案
相关问题