任何人都不知道如何在pinterest.com发布div? [英] Anybody have any idea how the divs are emitted in pinterest.com?

查看:109
本文介绍了任何人都不知道如何在pinterest.com发布div?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试着像这样水平地渲染我的div图像(从左到右,从上到下)。
但这不太对。
想知道每列的渲染方式是垂直的(从上到下,从右到左)。



任何人都知道如何模仿/复制这个页面?



*更新*
回应下面的答案,我做了一个快速搜索砖石vs同位素。以下 信息 非常能解释这个问题对于所有对此感兴趣的人。

解决方案

尝试查看与JS关闭。他们可能使用砌体同位素,或类似的东西。


I tried rendering my div images like this horizontally (left-to-right, top-to-bottom). But it's not quite right. Wondering if it's just vertically done where each column is rendered (top-to-bottom, right-to-left).

Anybody have any idea how to mimic/replicate this page?

* Update * In response to the answer below, i did a quick search for "masonry vs isotope". The following post explains this question very well, for all those interested.

解决方案

Each item is placed dynamically with JavaScript. Try viewing it with JS turned off. They are probably using Masonry, Isotope, or something similar.

这篇关于任何人都不知道如何在pinterest.com发布div?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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