teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

3

ああああああああああああああああああ

2022/05/17 11:08

投稿

wassan_nikoniko
wassan_nikoniko

スコア9

title CHANGED
@@ -1,1 +1,1 @@
1
- jspでcssが適用されない。
1
+ ああああああああああああああああああああああああああああああああああああ
body CHANGED
@@ -1,75 +1,1 @@
1
- ### 前提・実現したいこと
2
- jspにて、一か所だけcssが適用されないため質問とさせていただいております。コンテキストパスを利用してパスを取得しているはずなのですが...
3
-
4
- >>一か所だけというのはjspで定義しているinput要素になります
5
- ### 該当のソースコード
6
-
7
- ```jsp
8
- <%@ page language="java" contentType="text/html; charset=UTF-8"
9
- pageEncoding="UTF-8"%>
1
+ ああああああああああああああああああああああああああああああああああああ
10
- <!DOCTYPE html>
11
- <html lang="ja" dir="ltr">
12
- <head>
13
- <meta charset="utf-8">
14
- <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/style.css">
15
- <title>商品情報管理システム</title>
16
- </head>
17
- <body>
18
- <h1>在庫管理システム</h1>
19
- <input type="image" name="検索" value="検索" src="image/検索1.png">
20
- <input type="image" name="検索" value="検索" src="image/検索1.png">
21
- <table border="1">
22
- <!-- 1行目 -->
23
- <tr>
24
- <th>商品ID</th>
25
- <th>画像</th>
26
- <th>メーカー名</th>
27
- <th>商品名</th>
28
- <th>ジャンル</th>
29
- <th>在庫数</th>
30
- <th>販売個数</th>
31
- <th>価格</th>
32
- <th>更新</th>  
33
- </tr>
34
- <!-- 二行目 -->
35
- <tr>
36
- <td>××-××</td>
37
- <td><img class="watch" src="image/Aandyou_SW_E07_一覧用.png"></td>
38
- <td>○○○○○○</td>
39
- <td>○○○○○○</td>
40
- <td>○○○○○○</td>
41
- <td>○○</td>
42
- <td>○○</td>
43
- <td>○○○○○○</td>
44
- <td>○○○○○○</td>  
45
- </tr>
46
- </table>
47
- </body>
48
- </html>
49
-
50
- ```
51
-
52
- ```css
53
- @charset "UTF-8";
54
-
55
- h1 {
56
- font-size: 36px;
57
- background-color: black;
58
- color: white;
59
- }
60
-
61
- th {
62
- background-color: #959ADC;
63
- }
64
-
65
- input {
66
- margin-left: 750px;
67
- }
68
-
69
- .watch {
70
- height: 100px;
71
- }
72
-
73
- ```
74
- 階層はこちらになります。
75
- ![イメージ説明](827cac24138835c84d486d09659804bf.png)

2

説明の追加

2021/09/02 09:13

投稿

wassan_nikoniko
wassan_nikoniko

スコア9

title CHANGED
File without changes
body CHANGED
@@ -1,6 +1,7 @@
1
1
  ### 前提・実現したいこと
2
2
  jspにて、一か所だけcssが適用されないため質問とさせていただいております。コンテキストパスを利用してパスを取得しているはずなのですが...
3
3
 
4
+ >>一か所だけというのはjspで定義しているinput要素になります
4
5
  ### 該当のソースコード
5
6
 
6
7
  ```jsp

1

cssの追加

2021/09/02 09:13

投稿

wassan_nikoniko
wassan_nikoniko

スコア9

title CHANGED
File without changes
body CHANGED
@@ -48,5 +48,27 @@
48
48
 
49
49
  ```
50
50
 
51
+ ```css
52
+ @charset "UTF-8";
53
+
54
+ h1 {
55
+ font-size: 36px;
56
+ background-color: black;
57
+ color: white;
58
+ }
59
+
60
+ th {
61
+ background-color: #959ADC;
62
+ }
63
+
64
+ input {
65
+ margin-left: 750px;
66
+ }
67
+
68
+ .watch {
69
+ height: 100px;
70
+ }
71
+
72
+ ```
51
73
  階層はこちらになります。
52
74
  ![イメージ説明](827cac24138835c84d486d09659804bf.png)