简体   繁体   English

HTML和网页幻灯片显示

[英]HTML and Web page slide shows

We have a webpage with an empty center and we would like to put there an image slideshow. 我们有一个中心为空的网页,我们想在其中放一张图片幻灯片。

Do you know how to do that? 你知道怎么做吗? If you do please explain to me how to do it. 如果您这样做,请向我解释该如何做。

I have tried a modified version of a light box, no joy and I've tried this code below 我尝试了灯箱的修改版本,不高兴,并且在下面尝试了此代码

<div id="slider1_container" class="slider1" style="position: relative; top: 0px; left: 0px; width: 600px; height: 300px;">
  <!-- Slides Container -->
  <div u="slides" style="position: absolute; overflow: hidden; left: 0px; top: 0px; width: 600px; height: 300px;">
    <div><img u="image" src="image1.jpg" /></div>
    <div><img u="image" src="image2.jpg" /></div>
  </div>
  <!-- Trigger -->
  <script>('slider1_container');</script>
</div>

still no joy. 仍然没有喜悦。

Any help would be appreciated, whether the code is JavaScript or HTML either is fine. 无论代码是JavaScript还是HTML,任何帮助都将是可以的。

Check out the Bootstrap carousel at the following address. 在以下地址检查Bootstrap传送带。 Looks to me like what you may be looking for: 在我看来,您可能正在寻找什么:

http://getbootstrap.com/javascript/#carousel http://getbootstrap.com/javascript/#carousel

From there if you do not need the rest of the bootstrap utilities, you can just grab the carousel and configure it from here: 如果您不需要其余的引导实用程序,则可以从那里开始,只需从此处抓取转盘并对其进行配置:

http://getbootstrap.com/customize/ http://getbootstrap.com/customize/

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

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