简体   繁体   English

Bootstrap Carousel,显示 4,前进 1 - 只显示 1 个缩略图而不是 4

[英]Bootstrap Carousel, show 4, advance 1 - only showing 1 thumbnail not 4

Im trying to implement a bootstrap thumbnail slider, there should be 4 tiles showing and with a click of the arrow it advances by 1 thumbnail.我正在尝试实现一个引导缩略图滑块,应该显示 4 个图块,单击箭头它会前进 1 个缩略图。 There are lots of examples of these available online however after trying to implement about 5 of them, I have the same problem with them all.网上有很多这样的例子,但是在尝试实现其中的 5 个之后,我对它们都有同样的问题。

For some reason the slider only shows a single thumbnail when I copy all code and run it myself, I am used to using bootstrap normally can sort little issues, however this is just not making any sense to me.出于某种原因,当我复制所有代码并自己运行时,滑块仅显示一个缩略图,我习惯于使用引导程序通常可以解决一些小问题,但这对我来说没有任何意义。

This is the example I have implemented on my own private site, : http://www.bootply.com/94452这是我在自己的私人网站上实现的示例: http : //www.bootply.com/94452

Here is a screen shot of how it looks for me :这是它对我的外观的屏幕截图:

在此处输入图片说明

Here is an entire cut off all code used on the example :这是示例中使用的所有代码的完整切断:

pastebin.mozilla.org/8972187 pastebin.mozilla.org/8972187

All code is exactly the same, however it just does not work, if anything else if needed from me to help resolve this, please let me know.所有代码都完全相同,但是它不起作用,如果我需要其他任何帮助解决此问题,请告诉我。

Thankyou very much for any help非常感谢您的帮助

There are a few problems with the code..代码有点问题。。

  1. jQuery 1.7.1 is very old, use 1.9.1 or later. jQuery 1.7.1 很旧,使用 1.9.1 或更高版本。
  2. You've included bootstrap.js and jquery.js twice, and they should only be included once你已经包含了bootstrap.jsjquery.js两次,它们应该只包含一次

http://www.codeply.com/go/60oCFBwyPk http://www.codeply.com/go/60oCFBwyPk

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM