티스토리 뷰

web/JSP

부트스트랩

자벌레 2018. 2. 12. 13:12

-단점 : 변형이 어렵다.

https://www.w3schools.com/bootstrap/bootstrap_get_started.asp




 Bootstrap 시작하기 - 페이지 top에 적용 해 주어야 한다.



<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">

<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>

<!-- Latest compiled JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>


를 script아래에 붙여넣기




<meta name="viewport" content="width=device-width, initial-scale=1">


도 메타데이터 아래에 추가


하면 부트스트랩을 쓸 수 있다.







+) Containers  에 대한설명

Bootstrap also requires a containing element to wrap site contents.

There are two container classes to choose from:

  1. The .container class provides a responsive fixed width container
  2. The .container-fluid class provides a full width container, spanning the entire width of the viewport
.container
.container-fluid
















1.

메뉴바 추가

https://www.w3schools.com/bootstrap/bootstrap_navbar.asp



2.

아이콘 추가 등이 가능하다.

https://www.w3schools.com/bootstrap/bootstrap_ref_comp_glyphs.asp



3.

<div class="container-fluid">

<h2><span class="glyphicon glyphicon-th-list"></span>게시판 목록</h2>

<table class="table table-hover">


...


div class="container"를 만들고


table class="" 으로 표 모양설정 가능


<thead></thead>

이것은 행 자체를 구분짓는 역할을 한다.


<tbody></tbody>로 닫아줌(단 if문으로 분기되면 새로 열어줘야 오류가 안남)








'web > JSP' 카테고리의 다른 글

Base64 이미지 사용하기  (0) 2019.11.25
접속한 ip주소 확인하기, 이클립스 ip버전 변경하기  (0) 2018.01.19
JSP Template 설정  (0) 2018.01.17
GET, POST Form전송 방식  (0) 2018.01.16
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
TAG
more
«   2025/04   »
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
글 보관함