两列砌体jQuery具有不同的宽度? [英] Two column Masonry jQuery with different width?

查看:94
本文介绍了两列砌体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

这篇关于两列砌体jQuery具有不同的宽度?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆