0

我目前正在尝试 使用我的 drupal 实例实现简单的滑块。

我已经设法完成了大部分工作。请访问我的开发网站

http://www.iamvishal.com/dev/

如果单击右箭头,图像会滑动,但在左侧,您可以看到一些图像剪辑。

我尝试了css,但似乎无法摆脱它。任何建议将不胜感激。

干杯,维沙尔

我设法解决了它。js 正在从 li 组件中获取整体宽度和高度,因此您需要更改 css li 细节。

#slider2{margin-top:1em;}
#slider li, #slider2 li{ 
    /* 
        define width and height of list item (slide)
        entire slider area will adjust according to the parameters provided here
    */ 
    width:416px;
    height:287px;
    overflow:hidden; 
    }   
4

2 回答 2

0

尝试Nivo 滑块

它真的很神奇且易于使用。

于 2012-01-10T18:19:31.700 回答
0

我设法解决了它。js 正在从 li 组件中获取整体宽度和高度,因此您需要更改 css li 细节。

#slider2{margin-top:1em;}
#slider li, #slider2 li{ 
/* 
    define width and height of list item (slide)
    entire slider area will adjust according to the parameters provided here
*/ 
width:416px;
height:287px;
overflow:hidden; 
}   
于 2012-01-11T09:24:30.197 回答