【问题标题】:jquery cycle: overriding the width?jquery循环:覆盖宽度?
【发布时间】:2012-07-20 16:35:50
【问题描述】:

我使用的是 jQuery Cycle,但它会自动设置 div 的宽度。

循环的 div 有 ID #slideshow,所以我目前不得不修改 CSS

#slideshow {
  width: 100% !important;
}

有没有办法使用 jQuery Cycle 选项而不是使用 !important 来实现这一点。

任何提示将不胜感激!

【问题讨论】:

  • 我从未使用过该插件,但快速搜索后我进入了jQuery Cycle Plugin Options 页面,该页面包含诸如宽度和合身等内容。您在插件中使用了哪些选项?

标签: jquery cycle jquery-cycle


【解决方案1】:

set width option as

width: "100%"  // container width (if the 'fit' option is true, the slides will be set to this width as well)

【讨论】:

  • 我想你忘了把“”作为宽度:“100%”
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-05-09
  • 1970-01-01
  • 2014-09-02
  • 1970-01-01
  • 2013-09-27
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多