【问题标题】:Highslide - margins of html popup and picture [highslide]Highslide - html 弹出窗口和图片的边距 [highslide]
【发布时间】:2013-06-12 11:22:06
【问题描述】:

我在同一页面中使用了两个slideshowGroups:一个用于图片(图库),一个用于 html(在 iframe 中)。如何为每个设置不同的边距?

我需要 marginBottom = 大约 80px 和 marginLeft = 大约 200px 用于图片,以便为专门设计的控件留出空间,但 html-s 应该垂直和水平居中。

谢谢!

【问题讨论】:

    标签: highslide


    【解决方案1】:

    hs.align = 'center'; 设置为两个幻灯片组的全局设置。无论您使用什么边距,这都会使 slideshowGroup 居中。

    所有边的默认边距为 15。我不知道您画廊的 slideshowGroup 的名称,但说它是 'gallery' - 将此添加到您的设置中(需要 highslide-full.js):

    hs.Expander.prototype.onInit = function () {
        hs.marginBottom = (this.slideshowGroup == 'gallery') ? 80 : 15;
        hs.marginLeft = (this.slideshowGroup == 'gallery') ? 200 : 15;
    };
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多