GlobalPost 很高兴将 Isotope 用于我们的新业务页面。
http://www.globalpost.com/business-news
我们在 Drupal 上运行,因此每个页面上都运行着旧版本的 jquery。
我在页面上这样命名了新的 JQ
<script type="text/javascript" src="/sites/all/themes/globalpost_3/js/jquery-1.7.1.min.js"></script>
<script type='text/javascript'>
// added to run both jquery releases on page and stop conflist with old JQ libraray
var jQuery_1_7_1 = jQuery.noConflict(true);
</script>
<script type="text/javascript" src="/sites/all/themes/globalpost_3/js/jquery.isotope.min.js"></script>
<script type="text/javascript" src="/sites/all/themes/globalpost_3/js/gp5_biz.js"></script>
最后像这样编辑了 isitope 的最小版本
....eturn this}})(window,jQuery_1_7_1);
如您所见,它可以正常加载并且运行良好,但是如果您调整窗口大小,则块不会重排。如果您选择了过滤器或排序,他们会这样做,但不会调整窗口大小。我看了很长时间您的代码,但似乎无法弄清楚可能导致问题的原因或如何解决它。
我必须为 jq 库命名空间以避免冲突,但在我这样做之前调整大小工作正常。我敢肯定,其他人将需要使用带有 Isotope 的名称间隔的 JQ。
谢谢你的帮助