欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

在swiper js中,有沒有可能在不增加額外空間的情況下減小幻燈片的尺寸

老白2年前7瀏覽0評論

<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="utf-8" />
  <title>Swiper with Product Cards</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1" />

  <style>
    html,
    body {
      position: relative;
      height: 100%;
    }

    body {
      background: #eee;
      font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
      font-size: 14px;
      color: #000;
      margin: 0;
      padding: 0;
    }

    .swiper-container {
      width: 100%;
      height: 100%;
    }

    .swiper-slide {
      text-align: center;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .product-card {
      width: 150px;
      height: 239px;
      background-color: #fff;
      padding: 10px;
      box-sizing: border-box;
      border: 1px solid #ccc;
      border-radius: 5px;
    }

    .product-card img {
      max-width: 100%;
      height: auto;
    }
  </style>
</head>

<body>
  <swiper-container class="mySwiper" pagination="true" pagination-clickable="true" slides-per-view="3"
    space-between="30" free-mode="true">
    <swiper-slide>
      <div class="product-card">
        <img src="product1.jpg" alt="Product 1">
        <h3>Product 1</h3>
        <p>Description of Product 1</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product2.jpg" alt="Product 2">
        <h3>Product 2</h3>
        <p>Description of Product 2</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product3.jpg" alt="Product 3">
        <h3>Product 3</h3>
        <p>Description of Product 3</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product4.jpg" alt="Product 4">
        <h3>Product 4</h3>
        <p>Description of Product 4</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product5.jpg" alt="Product 5">
        <h3>Product 5</h3>
        <p>Description of Product 5</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product6.jpg" alt="Product 6">
        <h3>Product 6</h3>
        <p>Description of Product 6</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product7.jpg" alt="Product 7">
        <h3>Product 7</h3>
        <p>Description of Product 7</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product8.jpg" alt="Product 8">
        <h3>Product 8</h3>
        <p>Description of Product 8</p>
      </div>
    </swiper-slide>
    <swiper-slide>
      <div class="product-card">
        <img src="product9.jpg" alt="Product 9">
        <h3>Product 9</h3>
        <p>Description of Product 9</p>
      </div>
    </swiper-slide>
  </swiper-container>

  <script src="https://cdn.jsdelivr.net/npm/swiper@9/swiper-element-bundle.min.js"></script>
</body>

</html>