타임리프 display:none, display:block 처리
th:style (display:none,block)
<div class="cont" th:style="${dataVo.type == '01' ? 'display:block' : 'display:none'}">
</div>`
<div class="cont" style="background:#eee"th:style="${dataVo.type == '01' ? 'display:block' : 'display:none'}">
</div>`
'DEV > thymeleaf,Template' 카테고리의 다른 글
| [css] 스크롤 추가, 숨김 (style="overflow") (0) | 2020.06.30 |
|---|---|
| [html] 웹 경로 표기법 (path) : ../ ./ (0) | 2020.06.18 |
| [thymeleaf] 타임리프 세션 값 조회 (0) | 2020.05.28 |
| [Thymeleaf] 타임리프 기본 문법 (0) | 2020.05.18 |
| ide(이클립스 등) jsp파일 깨짐 현상 해결 (0) | 2020.04.06 |