2

使用该选项data-height="100%"将 Fotorama 的高度设置为窗口的高度。这是设计使然。但是我更希望它设置为父元素的高度。

我将 Fotorama 包含在一个几乎全高的容器内,但具有固定在窗口底部的导航填充。但在移动设备上是固定到标题的。

任何帮助将不胜感激!

4

1 回答 1

1
height = $('#fotorama').parent().outerHeight()
$('#fotorama').fotorama({width: '100%', height: height})
于 2014-12-14T15:12:07.847 回答