【问题标题】:Galleria Images smaller than stageGalleria 图片比舞台还小
【发布时间】:2012-02-02 14:30:03
【问题描述】:

我有一个 Galleria 画廊,我的舞台大小为 300x200 像素,但包含的图像已调整为 280x130 像素,因此图像周围有一个边框,它们位于舞台区域的中心。

如果可能的话,有没有办法摆脱这种行为并将图像大小调整为舞台宽度/高度的 100%?

舞台宽度/高度在初始化时设置:

$('#galleria').galleria({
   height: 200, 
   width: 300, 
   extend: function() {...} //some functionality for an additional navigation
});

【问题讨论】:

    标签: javascript jquery css galleria


    【解决方案1】:

    如果您使用的是 Classic 主题,您可能想看看 CSS,更具体地说,这里:

    https://github.com/aino/galleria/blob/master/src/themes/classic/galleria.classic.css#L17-23

    您可能还需要调整 imageMargin 设置:

    http://galleria.io/docs/1.2/options/imageMargin/

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-04-17
      • 1970-01-01
      • 2016-08-06
      • 2016-12-13
      • 2013-02-06
      相关资源
      最近更新 更多