내가 몰랐던 내용 정리하기
<table>
<tr>
<th> 번호 </th>
<th> 제목 </th>
<th> 작성일자 </th>
</tr>
<tr th:if="${!questionList.isEmpty}" th:each = "question, loop : ${questionList}">
<td th:text="${loop.count}"></td>
<td th:text="${question.subject}"></td>
<td th:text="${#temporals.format(question.CreateTime, 'yyyy-MM-dd HH:mm:ss')}"></td>
</tr>
</table>
<table>
<tr>
<td th:each="page: ${#numbers.sequence(0, questionList.totalPages-1)}"
th:class="${page == questionList.number} ? 'background-color: red;' : ''" >
<a th:text="${page}" class="page-link" th:href="@{|?page=${page}|}"></a>
</td>
</tr>
</table>
<td th:each="page: ${#numbers.sequence(0, questionList.totalPages-1)}"
th:class="${page == questionList.number} ? 'background-color: red;' : ''" >
<style>
.red {
background-color:red;
}
</style>
th:classappend="${page == questionList.number} ? red : ''"
<div style="background-color:red; height:40px; width:40px;">
</div>