0

我在具有以下设置的网站上使用响应式幻灯片 ( http://responsiveslides.com/ ) 进行一些推荐:

jQuery(".rslides").responsiveSlides({
  auto: true,             // Boolean: Animate automatically, true or false
  speed: 100,            // Integer: Speed of the transition, in milliseconds
  timeout: 10000,          // Integer: Time between slide transitions, in milliseconds
  pager: false,           // Boolean: Show pager, true or false
  nav: true,             // Boolean: Show navigation, true or false
  random: false,          // Boolean: Randomize the order of the slides, true or false
  pause: true,           // Boolean: Pause on hover, true or false
  pauseControls: true,    // Boolean: Pause when hovering controls, true or false
  prevText: "Previous",   // String: Text for the "previous" button
  nextText: "Next",       // String: Text for the "next" button
  maxwidth: "",           // Integer: Max-width of the slideshow, in pixels
  navContainer: "",       // Selector: Where controls should be appended to, default is after the 'ul'
  manualControls: "",     // Selector: Declare custom pager navigation
  namespace: "rslides",   // String: Change the default namespace used
  before: function(){},   // Function: Before callback
  after: function(){}     // Function: After callback
});

但是,第一张幻灯片几乎是其他幻灯片的两倍。有谁知道如何解决这个问题或为什么会这样?任何帮助将非常感激!

您可以在此页面看到错误:http ://www.hbprojectsltd.co.uk/testimonials

4

1 回答 1

0

原因是因为你有两次相同的推荐信。

如果您查看该页面的源代码,它会显示第一个推荐与第二个完全相同。幻灯片动画正在发生,但因为它看起来相同,所以看起来好像什么都没发生。

请参见此处(第 97 - 110 行):

<li>
  <blockquote class="testiquote">I have worked with HB Projects for circa 10 years although the company has worked for ASDA for significantly longer than that. HB are a mainstay of the ASDA Construction supplier base and have a turnover with us of circa £20m p.a. I have always found
    the team at HB Projects to be proactive, innovative and forward thinking. The quality of their work is always of a high standard and they always deliver on time and to cost. Snagging is resolved quickly and efficiently. Colleagues and Management undergo
    rigorous training and can be trusted to ensure individuals have appropriate qualifications for the level of work involved.
    <br />
    <br />I would be happy to give my full endorsement to HB Projects to undertake any schemes you have planned. I can confirm they have the skill-set to undertake all facets of construction work, from design to build and management of your project. I have
    always found the HB team honest and trustworthy. They have helped us deliver our mission to be Britain’s best value retailer and are considered a true partner to ASDA.
  </blockquote>
  <div class="endtestiquote"></div>
  <div class="quotefrom">
    <p><span class="bluefont bold">Richard Wilson</span>
      <br />Construction Manager, Construction & Facilities, Property & Format Development, Asda House.</p>
  </div>
</li>
<li>
  <blockquote class="testiquote">I have worked with HB Projects for circa 10 years although the company has worked for ASDA for significantly longer than that. HB are a mainstay of the ASDA Construction supplier base and have a turnover with us of circa £20m p.a. I have always found
    the team at HB Projects to be proactive, innovative and forward thinking. The quality of their work is always of a high standard and they always deliver on time and to cost. Snagging is resolved quickly and efficiently. Colleagues and Management undergo
    rigorous training and can be trusted to ensure individuals have appropriate qualifications for the level of work involved.
    <br />
    <br />I would be happy to give my full endorsement to HB Projects to undertake any schemes you have planned. I can confirm they have the skill-set to undertake all facets of construction work, from design to build and management of your project. I have
    always found the HB team honest and trustworthy. They have helped us deliver our mission to be Britain’s best value retailer and are considered a true partner to ASDA.
  </blockquote>
  <div class="endtestiquote"></div>
  <div class="quotefrom">
    <p><span class="bluefont bold">Richard Wilson</span>
      <br />Construction Manager, Construction & Facilities, Property & Format Development, Asda House.</p>
  </div>
</li>

您只需要删除其中一个块引用,您的问题就应该得到解决。

于 2015-03-05T10:03:36.263 回答