1.  bbs.jsp 생성(main.jsp 내용 복사)

<li class="active">를 메인에서 게시판으로 변경

현재의 페이지를 알 수 있도록 표시

<li><a href="main.jsp">메인</a></li>

<li class="active"><a href="bbs.jsp">게시판</a></li>

 

 

2. 게시판 화면 넣어주기

게시판은 테이블 구조를 가지고 있음. 하나의 표 형태

 

<div class="contatiner">

<div class="row">

<table class="table table-striped" style="text-align:center; border: 1px solid #dddddd">

<thead>

<tr>

<th style="background-color: #eeeeee; text-align: center;">번호</th>

<th style="background-color: #eeeeee; text-align: center;">제목</th>

<th style="background-color: #eeeeee; text-align: center;">작성자</th>

<th style="background-color: #eeeeee; text-align: center;">작성일</th>

</tr>

</thead>

<tbody>

<tr>

<td>1</td>

<td>안녕하세요.</td>

<td>홍길동</td>

<td>2017-05-04</td>

</tr>

</tbody>

</table>

<a href="write.jsp" class="btn btn-primary pull-right">글쓰기</a>

</div>

</div>

 

 

Container 오타나서 게시판 가로폭이 이상했었다..

 

 

 

참고

유투브 동빈나

+ Recent posts