2

在 Jssor Slider http://www.jssor.com/demos/tab-slider.html,第二个例子中,幻灯片内容固定为 331px。

但是我的内容的高度不同,我如何缩放高度?

谢谢。

4

1 回答 1

0

在下面的代码中调整'height: 331px'和'height: 300px'的值,如果你想再增加20px,你可以把它改为'351px'和'320px'。

<div id="slider2_container" style="position: relative; top: 0px; left: 0px; width: 602px; height: 331px; background: #fff; overflow: hidden; ">

    <!-- Slides Container -->
    <div u="slides" style="cursor: move; position: absolute; left:0px; top: 29px; width: 600px; height: 300px; border: 1px solid gray; background-color: #fff;
        overflow: hidden;">
于 2014-05-12T12:58:59.903 回答