回答編集履歴

1

パスのほうは一旦削除

2017/10/11 02:14

投稿

masaya_ohashi
masaya_ohashi

スコア9206

test CHANGED
@@ -1,8 +1,8 @@
1
- caseのパスが'./style.css'になっていないことと、cssのファイルのContent-Typeがtext/htmlになっているのが原因ではないでしょうか。
1
+ cssのファイルのContent-Typeがtext/htmlになっているのが原因ではないでしょうか。
2
2
 
3
3
  ```JavaScript
4
4
 
5
- case '/style.css': // ←ここ
5
+ case '/style.css':
6
6
 
7
7
  response.writeHead(200, {'Content-Type': 'text/html'}); // ←ここ
8
8
 
@@ -18,8 +18,6 @@
18
18
 
19
19
  ```JavaScript
20
20
 
21
- case './style.css':
22
-
23
21
  response.writeHead(200, {'Content-Type': 'text/css'});
24
22
 
25
23
  ```