回答編集履歴
1
パスのほうは一旦削除
answer
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
cssのファイルのContent-Typeがtext/htmlになっているのが原因ではないでしょうか。
|
2
2
|
```JavaScript
|
3
|
-
case '/style.css':
|
3
|
+
case '/style.css':
|
4
4
|
response.writeHead(200, {'Content-Type': 'text/html'}); // ←ここ
|
5
5
|
response.write(style_css);
|
6
6
|
response.end();
|
@@ -8,6 +8,5 @@
|
|
8
8
|
```
|
9
9
|
このように直してください。
|
10
10
|
```JavaScript
|
11
|
-
case './style.css':
|
12
11
|
response.writeHead(200, {'Content-Type': 'text/css'});
|
13
12
|
```
|