保证金底部悬停不与砌体一起使用?

时间:2014-09-25 11:02:17

标签: jquery margin masonry

我只想知道是否有办法重新创建像this这样的东西(悬停在引用条目上)。我现在一直在寻找如何创造类似的东西,但我找不到答案。

这是我的js:

$(function () { var $container = $('#content'); $container.masonry({ itemSelector: '#entry', columnWidth: 155 }); });

当您将margin-bottom悬停在#entry上时,我不知道还有什么可以添加{{1}}。

Fiddle

请帮帮忙?谢谢。 XX

1 个答案:

答案 0 :(得分:0)

用砖石很难达到效果。我用salvattore.js http://jsfiddle.net/umws6nrk/16/

让你成了小提琴

完美地开箱即用。

您只需要在正文底部和css中添加脚本

#content[data-columns]::before {
    content: '2 .column.size-1of2';
}

/* These are the classes that are going to be applied: */
.column { float: left; }
.size-1of2 { width: 50%; }
相关问题