V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐关注
Meteor
JSLint - a JavaScript code quality tool
jsFiddle
D3.js
WebStorm
推荐书目
JavaScript 权威指南第 5 版
Closure: The Definitive Guide
tinywenwen
V2EX  ›  JavaScript

jquery masonry 瀑布流怎么居中?

  •  1
     
  •   tinywenwen · 2015-01-16 15:26:21 +08:00 · 3923 次点击
    这是一个创建于 3387 天前的主题,其中的信息可能已经有所发展或是发生改变。
    3 条回复    2015-01-16 15:59:36 +08:00
    tinywenwen
        1
    tinywenwen  
    OP
       2015-01-16 15:52:36 +08:00
    http://www.tuicool.com/articles/F3iURz
    http://ninghao.net/blog/494
    找到了
    ----------------------------------------------------------------------------------------------------------------------------------
    参数:
    itemSelector class选择器,默认'.item',这个表示每个块的选择器
    columnWidth 一列的宽度
    isAnimated 使用jquery的布局变化,默认true
    animationOptions animate属性渐变效果(Object { queue: false, duration: 500 })
    gutterWidth 列的间隙 Integer
    isFitWidth 自适应浏览器宽度Boolean
    isResizableL 是否可调整大小 Boolean
    isRTL 使用从右到左的布局 Boolean
    emric
        2
    emric  
       2015-01-16 15:54:17 +08:00   ❤️ 1
    tinywenwen
        3
    tinywenwen  
    OP
       2015-01-16 15:59:36 +08:00
    @emric 谢谢哦,这个Edit fiddle 很不错,(*^__^*)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5407 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 07:43 · PVG 15:43 · LAX 00:43 · JFK 03:43
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.