回答編集履歴
1
パスのほうは一旦削除
test
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
c
|
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
|
```
|