Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/sorting/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/xamarin/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何使图像滑块下来,形成一个表?_Javascript - Fatal编程技术网

Javascript 如何使图像滑块下来,形成一个表?

Javascript 如何使图像滑块下来,形成一个表?,javascript,Javascript,我做了一个滑动幻灯片,可以自动滑动图像,效果很好。但现在,我想让所有的图像与信息写在它下面去做幻灯片放映后,在一个表格的形式出现。下面是我的源代码: <!doctype html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, user-scalable=no

我做了一个滑动幻灯片,可以自动滑动图像,效果很好。但现在,我想让所有的图像与信息写在它下面去做幻灯片放映后,在一个表格的形式出现。下面是我的源代码:

<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <link rel="stylesheet" href="../css/styles.css" type="text/css">
    <link rel="stylesheet" href="../css/swiper.min.css" type="text/css">
    <link rel="stylesheet" type="text/css" href="swiper.min.css">
    <script type ="text/javascript" src="../js/swiper.min.js"></script>

        <style type="text/css">
        body 
{
      background: black;
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color:#000;
      margin: 0;
      padding: 0;
}

.swiper-container 
{
      width: 100%;
      padding-top: 50px;
      padding-bottom: 50px;
}

.swiper-slide
{
      background-position: center;
      background-size: cover;
      width: 300px;
      height: 300px;
      background: white;
}

.swiper-slide .imgBx{
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.swiper-slide .imgBx img{
    width: 100%;
}

.swiper-slide .details{
    box-sizing: border-box;
    font-size: 20px;
    padding: 20px;

}

.swiper-slide .imgBx h3{
    margin: 0;
    padding: 0;
    font-size: 20px;
    text-align: center;
    line-height: 20px;
}

.swiper-slide .imgBx h3 span{
    font-size: 16px;
    color: red;
}

    </style>
</head>
<body style="background: grey ;">
<div class="row" >
    <div class="col-md-3 input-group input-group-sm" style="margin-left: 70%; margin-top: 10px;">
        <input type="number" name="numb" class=" form-control col-sm" placeholder=" Mentors" >
        <button type="submit" class="btn btn-dark  acc_active">Ment</button>
    </div>
</div>


<div class="row" style="margin-left: 350px; margin-top: 250px;" >
  <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide">
        <div class="imgBx">
          <img src="book2.jpg">
        </div>
        <div class="details">
          <h3>Image <span>SWE</span></h3>
        </div>
      </div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>

    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
  </div>
            </div>
        </div>
    <div class="col-md-12 container d-flex">
       <div class="box-1">
           <div class="ping">
           </div>
       </div>
        <div>
           <a href="table.php>"> <button id="btn-go"  style="width: 100px; margin-top: 0px;">
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                Shuffle
            </button></a>
        </div>

                <div class="swiper-container">
    <div class="swiper-wrapper">
      <div class="swiper-slide">
        <div class="imgBx">
            <img src="book2.jpg">
        </div>
        <div class="details">
            <h3>Image <span>SWE</span></h3>
        </div>
      </div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>
      <div class="swiper-slide"></div>

    </div>
    <!-- Add Pagination -->
    <div class="swiper-pagination"></div>
  </div>
            </div>
        </div>
   <div class="box-1">
       <div class="ping">
       </div>
        </div>
    </div>
</div>



 <script type="text/javascript" src="swiper.min.js"></script>

  <script>
    var swiper = new Swiper('.swiper-container', {
      effect: 'coverflow',
      grabCursor: true,
      centeredSlides: true,
      slidesPerView: 'auto',
      autoplay: {
        delay: 2500,
        disableOnInteraction: false,
      },
      coverflowEffect: {
        rotate: 60,
        stretch: 15,
        depth: 190,
        modifier: 3,
        slideShadows : true,
      },
      pagination: {
        el: '.swiper-pagination',
      },
    });
  </script>
</body>
</html>
<?php
include "header.php";
?>
<?php
include "footer.php"
?>

文件
身体
{
背景:黑色;
字体系列:Helvetica Neue、Helvetica、Arial、无衬线字体;
字体大小:14px;
颜色:#000;
保证金:0;
填充:0;
}
.swiper容器
{
宽度:100%;
填充顶部:50px;
填充底部:50px;
}
.滑梯
{
背景位置:中心;
背景尺寸:封面;
宽度:300px;
高度:300px;
背景:白色;
}
.swiper slide.imgBx{
宽度:100%;
高度:200px;
溢出:隐藏;
}
.swiper slide.imgBx img{
宽度:100%;
}
.swiper幻灯片。详细信息{
框大小:边框框;
字体大小:20px;
填充:20px;
}
.swiper幻灯片.imgBx h3{
保证金:0;
填充:0;
字体大小:20px;
文本对齐:居中;
线高:20px;
}
.滑动滑梯。imgBx h3跨度{
字体大小:16px;
颜色:红色;
}
装饰
图像SWE
图像SWE
var swiper=新的swiper(“.swiper容器”{
效果:“coverflow”,
格雷博:是的,
中心幻灯片:对,
SlideService视图:“自动”,
自动播放:{
延误:2500,
disableOnInteraction:false,
},
覆盖流效应:{
轮换:60,
伸展:15,
深度:190,
修改人:3,
幻灯片:没错,
},
分页:{
el:“.swiper分页”,
},
});

Hi,欢迎来到stack overflow。您试图解决此问题时遇到了什么问题?您好,欢迎来到stackoverflow。试着再澄清一下“下降”。看一看。请试着摆脱一切我们不需要复制你的例子。