Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- 리스트컴프리헨션
- get/post
- AJAX
- python 모듈 설치
- 폴더구조변경
- 웹스크래핑
- 클래스
- 서류합격팁
- javascript
- CRUD 게시판
- eclipse #python
- XML읽기
- Thread
- Python
- GAC 자격증
- 투표알고리즘
- 나이브베이지안분류
- 멀티프로세싱
- 간단한채팅프로그램
- VSCode
- pandas
- SQL
- 통계
- CSS적용방식
- HTML
- CSS
- Process
- DB연동
- 클로저(closure)
- 귀무/대립가설
Archives
- Today
- Total
EASY PEASY CODING
부트스트랩(Bootstrap) 본문
부트스트랩(Bootstrap)은 프론트엔드 Component Library라고 하여 웹페이지에 필요한 버튼, 메뉴, 탭, 모달, 카드 등 필수 요소들을 모아놓은 일종의 CSS 파일입니다. 이걸 우리의 HTML 파일에 설치하게 되면 보다 빠른 복붙식 HTML CSS개발이 가능하게 됩니다.
간단 설치방법
https://getbootstrap.com/docs/5.1/getting-started/introduction/#starter-template
방문 후 Starter Template 이라고 써있는 예제 코드를 새로운 HTML 파일에 복붙하시면 됩니다.
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>Hello, world!</title>
</head>
<body>
<h1>Hello, world!</h1>
<!-- Optional JavaScript; choose one of the two! -->
<!-- Option 1: Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
<!-- Option 2: Separate Popper and Bootstrap JS -->
<!--
--> </body> </html>
약간 안정성있는 설치방법
또는, 위처럼 간편하게 설치하지 않고 안정성있게 설치하려면
https://getbootstrap.com/docs/5.1/getting-started/download/
방문 후
1. boostrap.min.css,
2. bootstrap.어쩌구.js
위 두개 파일을 다운받아 HTML 파일에 첨부하면 됩니다.
<!-- head 태그 안에 CSS 첨부 -->
<link href="bootstrap.min.css 경로" rel="stylesheet">
<!-- body 태그 끝나기 직전에 js 첨부 -->
<script src="bootstrap.어쩌구.js 경로"></script>
부트스트랩 class 이용예시
<div class="container">이쁜 여백가진 박스</div>
<div class="mt-5">margin-top 쉽게 주기</div>
<div class="pb-5">padding-bottom 쉽게 주기</div>
<div class="fs-3">font-size 쉽게 주기</div>
<div class="text-center">text-align 쉽게 주기</div>
<div class="fw-bold">font-weight 쉽게 주기</div>