Anybody have any idea how the divs are emitted in pinterest.com?

≡放荡痞女 提交于 2019-12-24 03:24:11

问题


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.


回答1:


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



来源:https://stackoverflow.com/questions/10695256/anybody-have-any-idea-how-the-divs-are-emitted-in-pinterest-com

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!