English 中文(简体)
j 网上浏览器(Safari / Zheng)在首批装货时(在每件工作都得到罚款之后)看不见。
原标题:jQuery .cycle() is invisible in Webkit browsers [Safari / Chrome] on first load (after refresh everything works fine!)
  • 时间:2009-10-08 11:12:38
  •  标签:
最佳回答

如果你只是为了这一错误而争论,你就会发现许多人对图像的 j子有麻烦。 通常在职位上和表现上都发生。

My feeling is that sometime the script is run just before the images are loaded and the used width/length values for cycling the images are wrong. I would suggest you to add something like this to your page (adapt classes and names to your needs):

<script type="text/javascript">
  $(document).ready(
    function() {
      $( .image-list li ).each(function({$(this).css({
        [SET HERE POSITION, WIDTH, ETC]});});
      $( .image-list ).cycle([OPTIONS]);});
</script>
问题回答

使用<代码>$(window).load而不是$(文件)。 似乎也有所帮助。





相关问题