Skip to content

Commit 3878e6b

Browse files
committed
css 演習問題3の解答を修正
1 parent 2d52afd commit 3878e6b

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

docs/1-trial-session/03-css/_samples/foo/index.html

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,10 @@
22
<html lang="ja">
33
<head>
44
<meta charset="utf-8" />
5+
<link rel="stylesheet" href="./style.css" />
56
<title>Title</title>
67
</head>
78
<body>
8-
<div
9-
style="
10-
border: 1px solid #aaa;
11-
border-radius: 10px;
12-
margin: 30px;
13-
padding: 30px;
14-
box-shadow: 0px 0px 2px 1px #aaa;
15-
"
16-
>
17-
Foo
18-
</div>
9+
<div id="foo">Foo</div>
1910
</body>
2011
</html>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#foo {
2+
border: 1px solid #aaa;
3+
border-radius: 10px;
4+
margin: 30px;
5+
padding: 30px;
6+
box-shadow: 0px 0px 2px 1px #aaa;
7+
}

docs/1-trial-session/03-css/index.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import { Sandpack } from "@codesandbox/sandpack-react";
66
import yellowHelloCssHtml from "!!raw-loader!./_samples/yellow-hello-css/index.html";
77
import yellowHelloCssCss from "!!raw-loader!./_samples/yellow-hello-css/style.css";
88
import fooHtml from "!!raw-loader!./_samples/foo/index.html";
9+
import fooCss from "!!raw-loader!./_samples/foo/style.css";
910

1011
この節では、Web開発で用いられるもう一つの言語である、CSSについて学びます。CSSはWebサイトの「見た目」をつかさどる言語です。多くの<Term>HTML要素</Term>は、<Term>CSS</Term>を用いることで、その見た目を細かくカスタマイズすることができます。
1112

@@ -196,6 +197,7 @@ HTMLファイルとCSSファイルを分けて作成する場合、`style`属性
196197
template="static"
197198
files={{
198199
"/index.html": fooHtml,
200+
"/style.css": fooCss,
199201
}}
200202
options={{
201203
activeFile: "/index.html",

0 commit comments

Comments
 (0)