问题
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:
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.
Thank you very much for your help.
回答1:
i guess the work around will be as follows
$('.col2').css({'width':400});
$('.col1').css({'width':250});
after you apply the plugin . and edit other proprieties if required
来源:https://stackoverflow.com/questions/15182062/two-column-masonry-jquery-with-different-width