开发者

jQuery masonry plugin not working in IE7

i am working on a page that uses the masonr开发者_开发问答y jQuery plugin to layout blocks on a page. It works fine in all browsers except IE7 (yes, it even works in IE6), but i cannot figure out why it is happening as there are no js errors. The worst part is that it seems to work on initial page load, then it freaks out after a second and sets the left and top values of the blocks to 0.

Here is a link to a test version of the page. Any help would be greatly appreciated.

Thanks.


May be, I found how to solve the problem. Just like

$GPContainer.masonry(
{
    singleMode: true,
    itemSelector    : '.pin',
    //define in css
    columnWidth     : 0,
    isAnimated      : true,
    isFitWidth      : true,
    isRTL           : false
});

After

"isRTL : false"

can't have , or it will be wrong in IE7.


My problem was that I want to apply the masonry plugin on the nono-visible divs. In Firefox and other normal browser was ok but not in IE. I've modified and applied the masonry plugin after the divs was visible and now it seems to be ok. (Sorry for my english :) )

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜