doutongya8378 2014-09-30 08:54
浏览 35
已采纳

Drupal ColorBox加载

I have problem with my Colorbox library (v. 1.5.14) working on Drupal 7.31 with Colorbox 7.x-2.8 plugin.

All I want, is to add picture with colorbox class to one of my nodes. So, I'm adding this code to one of my articles:

<img src="/sites/default/files/pliki/nature-wallpaper-widescreen.jpg?958" width="1200" height="750"  style="max-width: 100%; height: auto;" class="colorbox" />

I'm saving the content and clicking on the image. Lightbox appears, but the image is infinitely loading. There are no errors in console (checked on FireFox and Chrome).

Everything works for me with v. 1.3.19 of the ColorBox library but the Drupal shows me, that the ColorBox library version is too old.

Any ideas?

  • 写回答

1条回答 默认 最新

  • dongmopu6734 2014-09-30 09:33
    关注

    Try to put your image into an <a> tag and give the link the colorbox class. https://www.drupal.org/node/1971564

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?