ﮏﻠﻓ ﺥﺮﭼ :5 ﭖﺮﺘﺳﺍ ﺕﻮﺑ


فهرست مطالب

    نمایش فهرست مطالب

ﺪﯾﻼﺳﺍ ﺶﯾﺎﻤﻧ/ﮏﻠﻓ ﺥﺮﭼ

:ﺖﺳﺍ ﺮﺻﺎﻨﻋ ﻖﯾﺮﻃ ﺯﺍ ﯼﺭﺍﻮﺳ ﻪﺧﺮﭼﻭﺩ ﯼﺍﺮﺑ ﺪﯾﻼﺳﺍ ﺶﯾﺎﻤﻧ ﮏﯾ ﮏﻠﻓ ﺥﺮﭼ


ﻢﯾﺯﺎﺴﺑ ﮏﻠﻓ ﺥﺮﭼ ﮏﯾ ﻪﻧﻮﮕﭼ

:ﺪﻫﺩ ﯽﻣ ﻥﺎﺸﻧ ﺍﺭ ﺎﻫ ﻝﺮﺘﻨﮐ ﻭ ﺎﻫﺮﮕﻧﺎﺸﻧ ﺎﺑ ﻪﯾﺎﭘ ﮏﻠﻓ ﺥﺮﭼ ﮏﯾ ﺩﺎﺠﯾﺍ ﻩﻮﺤﻧ ﺮﯾﺯ ﻝﺎﺜﻣ

ﻝﺎﺜﻣ

<!-- Carousel -->
<div id="demo" class="carousel slide" data-bs-ride="carousel">
  <!-- Indicators/dots -->
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button>
    <button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button>
    <button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button>
  </div>
  <!-- The slideshow/carousel -->
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="la.jpg" alt="Los Angeles" class="d-block w-100">
    </div>
    <div class="carousel-item">
      <img src="chicago.jpg" alt="Chicago" class="d-block w-100">
    </div>
    <div class="carousel-item">
      <img src="ny.jpg" alt="New York" class="d-block w-100">
    </div>
  </div>
  <!-- Left and right controls/icons -->
  <button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev">
    <span class="carousel-control-prev-icon"></span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next">
    <span class="carousel-control-next-icon"></span>
  </button>
</div>

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<!-- Carousel -->
<div id="demo" class="carousel slide" data-bs-ride="carousel">

  <!-- Indicators/dots -->
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button>
    <button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button>
    <button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button>
  </div>
  
  <!-- The slideshow/carousel -->
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="la.jpg" alt="Los Angeles" class="d-block" style="width:100%">
    </div>
    <div class="carousel-item">
      <img src="chicago.jpg" alt="Chicago" class="d-block" style="width:100%">
    </div>
    <div class="carousel-item">
      <img src="ny.jpg" alt="New York" class="d-block" style="width:100%">
    </div>
  </div>
  
  <!-- Left and right controls/icons -->
  <button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev">
    <span class="carousel-control-prev-icon"></span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next">
    <span class="carousel-control-next-icon"></span>
  </button>
</div>

<div class="container-fluid mt-3">
  <h3>Carousel Example</h3>
  <p>The following example shows how to create a basic carousel with indicators and controls.</p>
</div>

</body>
</html>

ﺖﺳﺍ ﻩﺪﺷ ﻩﺩﺍﺩ ﺢﯿﺿﻮﺗ ﻝﺎﺜﻣ

:ﺪﻫﺩ ﯽﻣ ﻡﺎﺠﻧﺍ ﻻﺎﺑ ﻝﺎﺜﻣ ﺯﺍ ﺱﻼﮐ ﺮﻫ ﻪﮐ ﯽﯾﺎﻫﺭﺎﮐ ﺡﺮﺷ

.carousel

ﺪﻨﮐ ﯽﻣ ﺩﺎﺠﯾﺍ ﮏﻠﻓ ﺥﺮﭼ

.carousel-indicators

(ﺪﻨﮐ ﯽﻣ ﻩﺪﻫﺎﺸﻣ ﺍﺭ ﺪﯾﻼﺳﺍ ﻡﺍﺪﮐ ﺮﺿﺎﺣ ﻝﺎﺣ ﺭﺩ ﺮﺑﺭﺎﮐ ﻭ ﺩﺭﺍﺩ ﺩﻮﺟﻭ ﮏﻠﻓ ﺥﺮﭼ ﺭﺩ ﺪﯾﻼﺳﺍ ﺪﻨ

.carousel-inner

ﺪﻨﮐ ﯽﻣ ﻪﻓﺎﺿﺍ ﮏﻠﻓ ﺥﺮﭼ ﻪﺑ ﺍﺭ ﺎﻫﺪﯾﻼﺳﺍ

.carousel-item

ﺪﻨﮐ ﯽﻣ ﺺﺨﺸﻣ ﺍﺭ ﺪﯾﻼﺳﺍ ﺮﻫ ﯼﺍﻮﺘﺤﻣ

.carousel-control-prev

.ﺩﺩﺮﮔﺮﺑ ﺎﻫﺪﯾﻼﺳﺍ ﻦﯿﺑ ﺪﻫﺩ ﯽﻣ ﻩﺯﺎﺟﺍ ﺮﺑﺭﺎﮐ ﻪﺑ ﻪﮐ ﺪﻨﮐ ﯽﻣ ﻪﻓﺎﺿﺍ ﮏﻠﻓ ﺥﺮﭼ ﻪﺑ ﺍﺭ (ﯽﻠﺒﻗ)

.carousel-control-next

.ﺩﻭﺮﺑ ﻮﻠﺟ ﻪﺑ ﺎﻫﺪﯾﻼﺳﺍ ﻦﯿﺑ ﺪﻫﺩ ﯽﻣ ﻩﺯﺎﺟﺍ ﺮﺑﺭﺎﮐ ﻪﺑ ﻪﮐ ﺪﻨﮐ ﯽﻣ ﻪﻓﺎﺿﺍ ﮏﻠﻓ ﺥﺮﭼ ﻪﺑ ﺍﺭ (

.carousel-control-prev-icon

ﺩﻮﺷ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ "ﯽﻠﺒﻗ" ﻪﻤﮐﺩ ﺩﺎﺠﯾﺍ ﯼﺍﺮﺑ carousel-control-prev. ﺎﺑ ﻩﺍﺮﻤﻫ

.carousel-control-next-icon

ﺩﻮﺷ ﯽﻣ ﻩﺩﺎﻔﺘﺳﺍ "next" ﻪﻤﮐﺩ ﺩﺎﺠﯾﺍ ﯼﺍﺮﺑ carousel-control-next. ﺎﺑ ﻩﺍﺮﻤﻫ

.slide

ﺪﯿﻨﮐ ﻑﺬﺣ ﺍﺭ ﺱﻼﮐ ﻦﯾﺍ ،ﺪﯿﻫﺍﻮﺧ ﯽﻤﻧ ﺍﺭ ﺖﮑﻓﺍ ﻦﯾﺍ ﺮﮔﺍ .ﺪﻨﮐ ﯽﻣ ﻪﻓﺎﺿﺍ ﻦﺸﯿﻤﯿﻧﺍ ﺖﮑﻓﺍ ﻭ C

ﺪﯿﻨﮐ ﻪﻓﺎﺿﺍ ﺎﻫﺪﯾﻼﺳﺍ ﻪﺑ ﺍﺭ ﺎﻫ ﺲﯾﻮﻧﺮﯾﺯ


:ﺪﯾﻼﺳﺍ ﺮﻫ ﯼﺍﺮﺑ ﻥﺍﻮﻨﻋ ﮏﯾ ﺩﺎﺠﯾﺍ ﯼﺍﺮﺑ <"code class="w3-codespa

ﻝﺎﺜﻣ

<div class="carousel-item">
  <img src="la.jpg" alt="Los Angeles">
  <div class="carousel-caption">
    <h3>Los Angeles</h3>
    <p>We had such a great time in LA!</p>
  </div>
</div>

→ ﺪﯿﻨﮐ ﻥﺎﺤﺘﻣﺍ ﺍﺭ ﻥﺁ ﻥﺎﺗﺩﻮﺧ

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Bootstrap Example</title>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet">
  <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"></script>
</head>
<body>

<!-- Carousel -->
<div id="demo" class="carousel slide" data-bs-ride="carousel">

  <!-- Indicators/dots -->
  <div class="carousel-indicators">
    <button type="button" data-bs-target="#demo" data-bs-slide-to="0" class="active"></button>
    <button type="button" data-bs-target="#demo" data-bs-slide-to="1"></button>
    <button type="button" data-bs-target="#demo" data-bs-slide-to="2"></button>
  </div>
  
  <!-- The slideshow/carousel -->
  <div class="carousel-inner">
    <div class="carousel-item active">
      <img src="la.jpg" alt="Los Angeles" class="d-block" style="width:100%">
      <div class="carousel-caption">
        <h3>Los Angeles</h3>
        <p>We had such a great time in LA!</p>
      </div>
    </div>
    <div class="carousel-item">
      <img src="chicago.jpg" alt="Chicago" class="d-block" style="width:100%">
      <div class="carousel-caption">
        <h3>Chicago</h3>
        <p>Thank you, Chicago!</p>
      </div> 
    </div>
    <div class="carousel-item">
      <img src="ny.jpg" alt="New York" class="d-block" style="width:100%">
      <div class="carousel-caption">
        <h3>New York</h3>
        <p>We love the Big Apple!</p>
      </div>  
    </div>
  </div>
  
  <!-- Left and right controls/icons -->
  <button class="carousel-control-prev" type="button" data-bs-target="#demo" data-bs-slide="prev">
    <span class="carousel-control-prev-icon"></span>
  </button>
  <button class="carousel-control-next" type="button" data-bs-target="#demo" data-bs-slide="next">
    <span class="carousel-control-next-icon"></span>
  </button>
</div>

<div class="container-fluid mt-3">
  <h3>Carousel Example</h3>
  <p>The following example shows how to create a basic carousel with indicators and controls.</p>
</div>

</body>
</html>