Song

style: table 가운데 정렬

1 <% include ../includes/header.ejs %> 1 <% include ../includes/header.ejs %>
2 <table class="table table-bordered table-hover"> 2 <table class="table table-bordered table-hover">
3 <tr> 3 <tr>
4 - <th width="100px" style="text-align: center;">카테고리명</th> 4 + <th width="80px" style="text-align: center;">카테고리명</th>
5 - <th style="text-align: center;">개설 날짜</th> 5 + <th width="50px" style="text-align: center;">개설 날짜</th>
6 - <th>내용</th> 6 + <th width="350px" style="text-align: center;">내용</th>
7 - <th>사용자명</th> 7 + <th width="30px" style="text-align: center;">사용자명</th>
8 - <th>삭제</th> 8 + <th width="30px" style="text-align: center;">삭제</th>
9 </tr> 9 </tr>
10 <%categories.forEach(function(product){%> 10 <%categories.forEach(function(product){%>
11 <tr> 11 <tr>
12 - <td> 12 + <td style="text-align: center;">
13 <a href="/categori/products/detail/<%=product.id%>"><%=product.title%></a> 13 <a href="/categori/products/detail/<%=product.id%>"><%=product.title%></a>
14 </td> 14 </td>
15 - <td> 15 + <td style="text-align: center;" >
16 <%=product.getDate.year%> - 16 <%=product.getDate.year%> -
17 <%=product.getDate.month%> - 17 <%=product.getDate.month%> -
18 <%=product.getDate.day%> 18 <%=product.getDate.day%>
19 </td> 19 </td>
20 - <td> 20 + <td style="text-align: center;">
21 - <%=product.description%> - 21 + <%=product.description%>
22 </td> 22 </td>
23 - <td> 23 + <td style="text-align: center;">
24 - <%=product.username%> - 24 + <%=product.username%>
25 </td> 25 </td>
26 - <td> 26 + <td style="text-align: center;">
27 <a href="/categori/products/delete/<%=product.id%>" class="btn btn-danger" onclick="return confirm('삭제하시겠습니까?')">삭제</a> 27 <a href="/categori/products/delete/<%=product.id%>" class="btn btn-danger" onclick="return confirm('삭제하시겠습니까?')">삭제</a>
28 </td> 28 </td>
29 </tr> 29 </tr>
......