【问题标题】:Easyslider and drupal 7Easyslider 和 drupal 7
【发布时间】:2012-01-10 18:13:56
【问题描述】:

我目前正在尝试使用我的 drupal 实例实现 easy slider

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

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; 
    }   

【问题讨论】:

  • 要回答您自己的问题,请回答并接受。这样,您的问题就会像已回答的问题一样被识别出来。
  • 用复选标记将其标记为已接受

标签: javascript jquery drupal drupal-7 easyslider


【解决方案1】:

试试Nivo Slider

它真的很棒而且易于使用。

【讨论】:

  • 我宁愿坚持使用简单的滑块
【解决方案2】:

我设法解决了。 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; 
}   

【讨论】:

    猜你喜欢
    • 2011-07-04
    • 2012-06-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-05
    相关资源
    最近更新 更多