반응형
<div></div>를
<center></center>태그로 감싼다.
예시
<center>
<!-- 검색 시작 -->
<div class="w3-container" >
<form action="getBoardList.do" method="post" >
<table style="text-align: center; width:580px; height: 100px;">
<tr>
<td><input name="searchKeyword" placeholder=" #음식이나 재료를 입력해보세요 ! #감자 #참치 #돼지고기" class="w3-input w3-border w3-round-large" type="text" /> </td>
</tr>
<tr>
<td><input type="submit" class="w3-button w3-round-large w3-dark-gray" value=" 검 색 " /></td>
</tr>
</table>
</form>
</div>
</center>
반응형
'공부 > JSP&Servlet' 카테고리의 다른 글
개발자 로드맵 한국어 버전 (0) | 2019.03.13 |
---|---|
기상청 API 받아오기 도움 되었던 사이트 모음 (0) | 2019.03.02 |
MVC model2에서 ajax를 통해 좋아요 구현하기 (0) | 2019.02.25 |
jsp/servlet button 눌렀을 때 창 띄우기 (비밀번호 맞는지 체크) (0) | 2019.02.23 |
JSP에서 파라미터 값 가져오기 (0) | 2019.02.18 |