단순 코드 기록/BootStrap

BootStrap_Image_Slide

일일일코_장민기 2024. 2. 9. 13:31
728x90

<!DOCTYPE html>

<html>

 

<head>

<meta charset="UTF-8">

<title>Insert title here</title>

<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet"

integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">

 

</head>

 

<body>

 

<div id="carouselExampleCaptions" class="carousel slide">

 

<div class="carousel-indicators">

<!--바로가기바-->

<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active" aria-current="true" aria-label="Slide 1"></button>

<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1" aria-label="Slide 2"></button>

<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2" aria-label="Slide 3"></button>

</div>

 

<div class="carousel-inner">

<div class="carousel-item active">

<img src="img/a.jpg" class="d-block w-100" alt="...">

<div class="carousel-caption d-none d-md-block">

<h5>First slide label</h5>

<p>Some representative placeholder content for the first slide.</p>

</div>

</div>

<div class="carousel-item">

<img src="img/b.jpg" class="d-block w-100" alt="...">

<div class="carousel-caption d-none d-md-block">

<h5>Second slide label</h5>

<p>Some representative placeholder content for the second slide.</p>

</div>

</div>

<div class="carousel-item">

 

<!--이미지-->

<img src="img/c.jpg" class="d-block w-100" alt="...">

<div class="carousel-caption d-none d-md-block">

 

<!--설명 공간-->

<h5>Third slide label</h5>

<p>Some representative placeholder content for the third slide.</p>

<!--설명 공간-->

 

</div>

</div>

</div>

 

<!--양 옆 버튼-->

<button class="carousel-control-prev" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">

<span class="carousel-control-prev-icon" aria-hidden="true"></span>

<span class="visually-hidden">Previous</span>

</button>

<button class="carousel-control-next" type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide="next">

<span class="carousel-control-next-icon" aria-hidden="true"></span>

<span class="visually-hidden">Next</span>

</button>

</div>

 

 

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js"

integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous">

</script>

 

 

</body>

 

</html>

'단순 코드 기록 > BootStrap' 카테고리의 다른 글

BootStrap_Modal  (0) 2024.02.09
BootStrap_HideData  (0) 2024.02.09
BootStrap_Image_SlideShow  (0) 2024.02.09
BootStrap_Button_input  (0) 2024.02.09
BootStrap_Button_Grid  (0) 2024.02.09