Bootstrap 5 검색 예
16022 단어 tutorialwebdevbootstrapbootstrap5
view
Bootstrap 5 검색 상자 예
1) 부트스트랩 5 단순 검색창 형태.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bootstrap 5 Search Example</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="d-flex align-items-center justify-content-center vh-100 flex-column gap-4">
<form class="d-flex">
<input class="form-control me-1" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-primary" type="submit">Search</button>
</form>
<form class="d-flex">
<input class="form-control me-1" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-primary" type="submit">Search</button>
</form>
<form class="d-flex">
<input class="form-control me-1" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-success" type="submit">Search</button>
</form>
</div>
</body>
</html>
2) 부트스트랩 5 왼쪽 검색창.
<form class="d-flex">
<button class="btn btn-primary me-1" type="submit">Search</button>
<input class="form-control" type="search" placeholder="Search" aria-label="Search">
</form>
<form class="d-flex">
<button class="btn btn-outline-primary me-1" type="submit">Search</button>
<input class="form-control" type="search" placeholder="Search" aria-label="Search">
</form>
<form class="d-flex">
<button class="btn btn-success me-1" type="submit">Search</button>
<input class="form-control" type="search" placeholder="Search" aria-label="Search">
</form>
3) fontawesome 6 아이콘이 있는 부트스트랩 5 검색 양식.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Bootstrap 5 Search box with Icon</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<!-- fontawesome icon cdn -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.css">
</head>
<body>
<div class="d-flex align-items-center justify-content-center vh-100 flex-column gap-4">
<form class="d-flex">
<input class="form-control me-1" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-primary" type="submit">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</form>
<form class="d-flex">
<input class="form-control me-1" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-outline-primary" type="submit">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</form>
<form class="d-flex">
<input class="form-control me-1" type="search" placeholder="Search" aria-label="Search">
<button class="btn btn-success" type="submit">
<i class="fa-solid fa-magnifying-glass"></i>
</button>
</form>
</div>
</body>
</html>
4) 부트스트랩 5 테두리 없는 검색 상자.
<form class="d-flex">
<input class="border border-3 border-top-0 border-start-0 border-end-0" type="search" placeholder="Search"
aria-label="Search" style=" outline: none;">
<button class="btn btn-primary" type="submit">Search </button>
</form
5) 부트스트랩 5 부동 검색 상자.
<form action="">
<div class="form-floating mb-3 d-flex">
<input type="search" class="form-control form-control" id="floatingInput" placeholder="Search Query">
<label for="floatingInput">Search Query</label>
</div>
</form>
또한 읽기
Bootstrap 5 Dark Mode Example
Bootstrap 5 File Upload Example
Bootstrap 5 Divider Line Example
Bootstrap 5 Login Form Page Example
Bootstrap 5 Gradient Button Example
Bootstrap 5 Card Slider with Splide JS Example
Bootstrap 5 Responsive Footer Section Example
Reference
이 문제에 관하여(Bootstrap 5 검색 예), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/frontendshape/bootstrap-5-search-example-1fci텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념 (Collection and Share based on the CC Protocol.)