isbase
V2EX  ›  CSS

关于多列不等高 div 清除浮动的问题

  •  
  •   isbase ·
    PRO
    · Jun 30, 2015 · 3726 views
    This topic created in 4004 days ago, the information mentioned may be changed or developed.

    请教如何清除这些较大的边距?

    目前只对第二张图片使用了 clear:both;

    image description

    8 replies    2015-06-30 22:53:46 +08:00
    yangg
        1
    yangg  
       Jun 30, 2015   ❤️ 1
    参考瀑布流,绝对定位。
    abelyao
        2
    abelyao  
       Jun 30, 2015
    你是想做瀑布流的效果吧?
    banri
        3
    banri  
       Jun 30, 2015
    瀑布流吧,用绝对定位是absolute是目前比较稳妥的方法
    banri
        4
    banri  
       Jun 30, 2015   ❤️ 1
    -_- 最近总手滑打错字……
    用position: absolute定位,可以搜索waterfall
    isbase
        5
    isbase  
    OP
    PRO
       Jun 30, 2015 via Android
    @abelyao 是的
    isbase
        6
    isbase  
    OP
    PRO
       Jun 30, 2015 via Android
    @yangg
    @abelyao
    @banri

    Thanks
    learnshare
        7
    learnshare  
       Jun 30, 2015
    常规的流式布局,横向一排会被最高的撑开。瀑布流不应该是常规定位
    jamiefang
        8
    jamiefang  
       Jun 30, 2015 via iPad
    用masonry.js就好了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5889 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 03:16 · PVG 11:16 · LAX 20:16 · JFK 23:16
    ♥ Do have faith in what you're doing.