V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
frontman
V2EX  ›  程序员

百度图片里的图片布局是怎样实现的

  •  
  •   frontman · 2015-02-05 13:50:29 +08:00 · 3809 次点击
    这是一个创建于 3374 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2015-02-05 16:31:15 +08:00
    thonatos
        1
    thonatos  
       2015-02-05 15:02:16 +08:00
    1.No Plugin
    使用ul>li,然后通过js动态计算图片的位置,设置position。

    2.Jquery plugin:
    Query Masonry == http://www.fishspotr.com/
    domino
        2
    domino  
       2015-02-05 16:04:45 +08:00   ❤️ 1
    zcbenz
        3
    zcbenz  
       2015-02-05 16:31:15 +08:00
    你每发出一个请求都有无数辛勤的百度工程师在手动给你排版。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1028 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 18:07 · PVG 02:07 · LAX 11:07 · JFK 14:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.