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

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

报告相同问题?

悬赏问题

  • ¥15 聚类分析或者python进行数据分析
  • ¥15 逻辑谓词和消解原理的运用
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复
  • ¥15 (希望可以解决问题)ma和mb文件无法正常打开,打开后是空白,但是有正常内存占用,但可以在打开Maya应用程序后打开场景ma和mb格式。
  • ¥20 ML307A在使用AT命令连接EMQX平台的MQTT时被拒绝
  • ¥20 腾讯企业邮箱邮件可以恢复么
  • ¥15 有人知道怎么将自己的迁移策略布到edgecloudsim上使用吗?
  • ¥15 错误 LNK2001 无法解析的外部符号