【问题标题】:Use quicksand with non-fixed height/width container将流沙与非固定高度/宽度容器一起使用
【发布时间】:2012-09-29 15:06:10
【问题描述】:

有没有办法将流沙插件 (http://razorjack.net/quicksand/) 与设置为百分比尺寸而不是固定尺寸的容器一起使用?它运行良好,但动画无法正常工作。

谢谢。

【问题讨论】:

    标签: jquery html css quicksand jquery-easing


    【解决方案1】:

    我遇到了同样的问题,并使用了一些 jQuery 来根据屏幕上的尺寸来修复尺寸

        var thumbHeight = $('.project-thumb').height(),
        thumbWidth = $('.project-thumb').outerWidth();                  
    
        $('.project-thumb').css({'max-width':thumbWidth, 'max-height':thumbHeight});
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2011-11-30
      • 2023-03-25
      • 2018-10-02
      • 1970-01-01
      • 2013-06-08
      • 1970-01-01
      • 2012-03-20
      相关资源
      最近更新 更多