JQuery Isotope命令不准确地排序div
我的url是leftsideart(点)co(点)nz
我使用以下同位素设置:
jQuery('#post-area').isotope({ animationOptions: { duration: 750, easing: 'linear', queue: false }, getSortData : { number : function( $elem ) { return parseInt( $elem.find('.order').text(), 10 ); } }, sortBy : 'number', sortAscending : true, animationEngine : 'jquery' }); var jQuerycontainer = jQuery('#post-area'); jQuerycontainer.imagesLoaded( function() { jQuerycontainer.isotope(); });
但我的divs没有正确排序。 同位素肯定会影响顺序,因为我尝试在我的wordpress循环中回显随机数而不是递增数字并且div相应地进行随机播放。
另外,为了确保,当我将更改’sortAscending’更改为false时,div的一般顺序是相反的。
Isotope是否只提供一般订购而不是精确订购?
对于类似的问题,这对我有用
layoutMode: 'cellsByColumn', cellsByColumn: { columnWidth: 240, rowHeight: 360 }
docs在这里http://isotope.metafizzy.co/v1/demos/layout-modes.html