jQuery Isotope - 中心和流体/响应 [英] jQuery Isotope — Centered and Fluid/Responsive

查看:21
本文介绍了jQuery Isotope - 中心和流体/响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在问一个关于同位素

这是一个很棒的 jQuery 插件.

It is a great plugin for jQuery.

我已经玩了一段时间了,但我对 javascript 的了解还不够,无法将两种同位素技术结合起来,响应同位素中心同位素.

I have been playing with it for a while now, but I don't know enough about javascript to combine two of the Isotope techniques, responsive Isotope and centered Isotope.

我已经成功地使用了响应式 mod 并且它工作得很好,除了现在我需要将整个内容集中在一个 div 中.居中布局模式没有记录在案,以及响应模式,所以我在让它工作时遇到了一些麻烦.基本上居中布局模式的说明是:

I have sucessfully used the responsive mod and it worked pretty well, except now I need to center the whole thing within a div. The centered layout mode isn't documented as well as the responsive mode, so I am having some trouble getting it to work. Basically the inscructions for the centered layout mode are :

要使用此模组,请复制在演示页面源中找到的修改方法.

To use this mod, copy the revised methods found in the demos’ page source.

不幸的是,视图源代码中有各种各样的 javascript 事情,我没有足够的 javascript 经验来挑选它并将其与我已经使用的响应式脚本结合起来.

Unfortunately, there are all sorts of javascript things going on in the view source and I don't have enough experience with javascript to pick it out and also combine it with the responsive script I already have working.

任何帮助将不胜感激.

一个包含我需要的工作示例的网站.

我正在试验的网站.

我认为在 Firefox 中效果更好.

Works better in Firefox I think.

推荐答案

以下是 David DeSandro 本人提供的示例:

Here is an example provided by David DeSandro himself:

http://jsfiddle.net/desandro/P6JGY/6/

这篇关于jQuery Isotope - 中心和流体/响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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