質問編集履歴
3
app.jspノ追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -75,4 +75,30 @@
|
|
75
75
|
width: 66%;
|
76
76
|
padding: 10px 2%;
|
77
77
|
}
|
78
|
+
```
|
79
|
+
```app.jsp
|
80
|
+
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
81
|
+
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
82
|
+
<!DOCTYPE html>
|
83
|
+
<html lang="ja">
|
84
|
+
<head>
|
85
|
+
<meta charset="UTF-8">
|
86
|
+
<title>健康チェック</title>
|
87
|
+
|
88
|
+
<link rel="stylesheet" href="<c:url value='/CSS/style.css' />">
|
89
|
+
</head>
|
90
|
+
<body>
|
91
|
+
<div id="wrapper">
|
92
|
+
<div id="header">
|
93
|
+
<h1>健康チェック</h1>
|
94
|
+
</div>
|
95
|
+
<div id="content">
|
96
|
+
${param.content}
|
97
|
+
</div>
|
98
|
+
<div id="footer">
|
99
|
+
by Yuki shiroma.
|
100
|
+
</div>
|
101
|
+
</div>
|
102
|
+
</body>
|
103
|
+
</html>
|
78
104
|
```
|
2
cssの提示
title
CHANGED
File without changes
|
body
CHANGED
@@ -57,57 +57,22 @@
|
|
57
57
|
</c:import>
|
58
58
|
```
|
59
59
|
```css
|
60
|
-
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
61
|
-
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
62
|
-
<c:import url="../layout/app.jsp">
|
63
|
-
<c:param name="content">
|
64
|
-
<c:if test="${flush != null}">
|
65
|
-
<div id="flush_success">
|
66
|
-
<c:out value="${flush}"></c:out>
|
67
|
-
</div>
|
68
|
-
</c:if>
|
69
|
-
<h2>生徒一覧</h2>
|
70
|
-
<table id="student_list">
|
71
|
-
<tbody>
|
72
|
-
<tr>
|
73
|
-
<th>学籍番号</th>
|
74
|
-
<th>氏名</th>
|
75
|
-
<th>操作</th>
|
76
|
-
</tr>
|
77
|
-
<c:forEach var="student" items="${students}" varStatus="status">
|
78
|
-
<tr class="row${status.count % 2}">
|
79
|
-
<td><c:out value="${employee.code}" /></td>
|
80
|
-
<td><c:out value="${employee.name}" /></td>
|
81
|
-
<td>
|
82
|
-
<c:choose>
|
83
|
-
<c:when test="${employee.delete_flag == 1}">
|
84
|
-
(削除済み)
|
85
|
-
</c:when>
|
86
|
-
|
60
|
+
table, tr, th, td {
|
87
|
-
<a href="<c:url value='/employees/show?id=${employee.id}' />">詳細を表示</a>
|
88
|
-
</c:otherwise>
|
89
|
-
</c:choose>
|
90
|
-
</td>
|
91
|
-
</tr>
|
92
|
-
|
61
|
+
border: 1px solid #cccccc;
|
93
|
-
|
62
|
+
}
|
94
|
-
</table>
|
95
63
|
|
96
|
-
<div id="pagination">
|
97
|
-
|
64
|
+
table {
|
98
|
-
<c:forEach var="i" begin="1" end="${((students_count - 1) / 15) + 1}" step="1">
|
99
|
-
|
65
|
+
width: 100%;
|
100
|
-
<c:when test="${i == page}">
|
101
|
-
<c:out value="${i}" />
|
102
|
-
</c:when>
|
103
|
-
|
66
|
+
table-layout: fixed;
|
104
|
-
<a href="<c:url value='/health/index?page=${i}' />"><c:out value="${i}" /></a>
|
105
|
-
</c:otherwise>
|
106
|
-
</c:choose>
|
107
|
-
</c:forEach>
|
108
|
-
|
67
|
+
}
|
109
|
-
<p><a href="<c:url value='/employees/new' />">新規従業員の登録</a></p>
|
110
68
|
|
69
|
+
th {
|
70
|
+
width: 26%;
|
111
|
-
|
71
|
+
padding: 10px 2%;
|
72
|
+
}
|
73
|
+
|
74
|
+
td {
|
75
|
+
width: 66%;
|
112
|
-
|
76
|
+
padding: 10px 2%;
|
77
|
+
}
|
113
78
|
```
|
1
コードの場所修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
画像のように一覧を表示したいのですがまったく反映されません。CSSのコードの書き方に問題があるのでしょうか?
|
2
2
|
説明](4ad7dfbb80e1355d64b3a1fe0ccbfd17.png)](f432119f7ce21b0cef0f5363e5fc3bd5.png)
|
3
3
|
|
4
|
-
```
|
4
|
+
``` jsp
|
5
5
|
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
6
6
|
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
7
7
|
<c:import url="../layout/app.jsp">
|