两列砌体jQuery具有不同的宽度?

问题描述:

我目前正在使用砌体来定制主题.我成功实现了砌体,但不幸的是,我不知道如何实现两根不同大小的圆柱.

I am current working on a custom theme using Masonry. I successfully implemented masonry but i unfortunately, i can't figure out how can i implement a two column with different sizes.

要清楚了解我要执行的操作,可以看一下图像:

to have a clear view of what i'm trying to do, you can take a look at the image:

我遇到的问题是我只能做出类似的宽度.在我的示例中,我希望第一列(比方说)宽度= 250px,第二列是comlumn = 400px.

the problem i encounter is i only can make a similar width. in my example, i want to have the first column (let's say) width = 250px and the 2nd column is comlumn = 400px.

非常感谢您的帮助.

我认为解决方法如下

$('.col2').css({'width':400});
$('.col1').css({'width':250});

在应用插件之后.并根据需要编辑其他属性

after you apply the plugin . and edit other proprieties if required