图像不会在轨道滑块基础上滑动

Images dont slide in orbit slider Foundation

我正在尝试将 Foundation Orbit Slider 添加到我的网页。它看起来很简单,我必须看到图像以及上一个和下一个按钮,但是如果我单击上一个和下一个按钮,轨道滑块根本不会移动。图片不滑动,我不知道为什么,因为我看过很多例子,我认为我的代码看起来一样。任何帮助将不胜感激

<html>
  <head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="altiria webapp">

    <link rel="stylesheet" href="assets/css/foundation.min.css">
    <link rel="stylesheet" href="assets/css/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="assets/css/jquery-ui.css">
    <link rel="stylesheet" href="assets/css/jquery-ui.structure.css">
    <link rel="stylesheet" href="assets/css/jquery-ui.theme.css">
    <link rel="stylesheet" href="assets/css/app.css">
    <script src="assets/js/modernizr.js"></script>
    <script src="assets/js/jquery.js"></script>
    <script src="assets/js/jquery-ui.js"></script>
    <script src="assets/js/foundation.min.js"></script> 

 </head>

 <body>
   <div class="orbit-container">
     <ul class="example-orbit" data-orbit>
       <li>
         <img src="assets/images/paisaje1.jpg" alt="slide 1" />
         <div class="orbit-caption">
           Caption One.
         </div>
      </li>
      <li class="active">
        <img src="assets/images/paisaje2.jpg" alt="slide 2" />
        <div class="orbit-caption">
          Caption Two.
        </div>
      </li>
      <li>
        <img src="assets/images/paisaje3.jpg" alt="slide 3" />
        <div class="orbit-caption">
          Caption Three.
        </div>
      </li>
    </ul>

    <!-- Navigation Arrows -->
    <a href="#" class="orbit-prev">Prev <span></span></a>
    <a href="#" class="orbit-next">Next <span></span></a>

    <!-- Slide Numbers -->
    <div class="orbit-slide-number">
    <span>1</span> of <span>3</span>
    </div>

    <!-- Timer and Play/Pause Button -->
    <div class="orbit-timer">
      <span></span>
      <div class="orbit-progress"></div>
   </div>
 </div>
 <!-- Bullets -->
 <ol class="orbit-bullets">
   <li data-orbit-slide-number="1"></li>
   <li data-orbit-slide-number="2" class="active"></li>
   <li data-orbit-slide-number="3"></li>
 </ol>

 <script>  
  $(document).foundation();
 </script>

</body>

您的页面上似乎混合了预呈现的 HTML 和呈现的 HTML。您不需要标有注释的代码块(导航箭头、幻灯片编号、计时器、项目符号等); Foundation 将为您渲染它们。

此外,您的 class="example-orbit" 可能会造成干扰,除非您需要,否则我建议您将其删除。

重要提示:根据基金会网站,"Orbit has been deprecated, meaning that it is no longer supported."他们officially recommend使用不同的图像滑块而不是他们的轨道。