No width/height set for items. This will cause an infinite loop. Aborting

前端 未结 11 1442
太阳男子
太阳男子 2020-12-13 23:46

I am using jcarousel, and on window resizing I am getting the error:

jCarousel: No width/height set for items. This will cause an infinite loop. Abo

相关标签:
11条回答
  • 2020-12-14 00:23

    If your gallery is inside UpdatePanel (Ajax) does not work well, if you generated an event within the panel. every thing inside the panel stops or generates an error....

    0 讨论(0)
  • 2020-12-14 00:25

    This is by design, you must set the width and height of each image:

    <li><img src="" width="75" height="75" alt="" /></li>
    
    0 讨论(0)
  • 2020-12-14 00:27

    You need to set a height and width on the ul or whatever container holds the images. Check out the css supplied with jCarousel (it is long but only the first few rules are relevant).

    0 讨论(0)
  • 2020-12-14 00:27

    You just have to update the jcarousel version to its latest version. And it will solve the issue.

    Download the latest version here and update the necessary files.

    0 讨论(0)
  • 2020-12-14 00:32

    I observe this problem if container gallery is hidden display:none

    0 讨论(0)
提交回复
热议问题