File tree Expand file tree Collapse file tree 3 files changed +11
-11
lines changed
docs/1-trial-session/03-css Expand file tree Collapse file tree 3 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import { Sandpack } from "@codesandbox/sandpack-react";
66import yellowHelloCssHtml from " !!raw-loader!./_samples/yellow-hello-css/index.html" ;
77import yellowHelloCssCss from " !!raw-loader!./_samples/yellow-hello-css/style.css" ;
88import 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" ,
You can’t perform that action at this time.
0 commit comments