jQuery砌体调用的IE问题 [英] IE issue with jQuery masonry call

查看:60
本文介绍了jQuery砌体调用的IE问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个石工电话,该电话在除IE7及以下版本的所有浏览器中都能正常工作.也许这只是一个简单的语法问题,但也许以前有人对此有经验.下面的代码:

I have a masonry call which is working fine in all browsers but IE7 and below. Maybe its just a simple syntax issue, but maybe someone has had experience of this before. Code below:

$(function(){
  $('#mainContent').masonry({
    columnWidth: 200, 
    itemSelector: '.threadWrapper:visible',
    resizeable: true,
    saveOptions: true,  
  });
});

下面是错误消息(第41行是拳头属性声明-columnWidth):

Below is the error message (line 41 is the fist attribute declaration - columnWidth):

替代文字http://www.kalpaitch.com/info/masonrybug.jpg

推荐答案

saveOptions: true之后,您还有一个额外的,.也许IE7的容忍度较低.

You have an extra , after saveOptions: true. Maybe IE7 is less tolerant.

这篇关于jQuery砌体调用的IE问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆