Tag: masonry

砌体为什么要安排在单列重叠

我正在使用附加函数将元素附加到已经初始化的砌体实例,但是我的所有切片都在一列中布局,而且很多都是重叠的。 你能看出我做错了什么吗? function placeNewsTiles(news){ //places news tiles var length = (news.data.length > 20) ? 20 : news.data.length; var $container = $(‘#news’); var elems =””; for(var i = 0; i < length; i++){ elems += '\ \ \ ‘ + news.data[i]._title + ‘\ \ ‘ + news.data[i]._source + ‘\ \ \ \ \ \ \ \ […]

砌体网格显示不正常

在这里,我试图让砌体网格到我的引导行值。 但是当我启动砌体网格时,我得到的网格在下面的行中的项目之间有很多空间。 我怎么解决这个? 完整的HTML: .grid-item {width:400px;} Campingaz Expert Plus Gas Barbecue₹7995/-₹178000 of 4 owners reached Add to cart Milagrow Swimming Pool Robot : RoboPhelps₹29709/-₹1500000 of 8 owners reached Add to cart Stanley Socket Set₹0/-₹30 of 4 owners reached Add to cart Deemark Portable Home Spa Havvy Massager₹0/-₹31 of 4 owners reached Add to cart Yamaha […]