-
Notifications
You must be signed in to change notification settings - Fork 1
/
css-backgrounds-3.xhtml
59 lines (55 loc) · 1.81 KB
/
css-backgrounds-3.xhtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="ja">
<head>
<meta charset="utf-8" />
<title>CSS Backgrounds and Borders Level 3</title>
<style>
section {
margin: 1em 0;
padding: 4px;
}
#background-image {
background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURUdwTNbW1q782KsAAAABdFJOUwBA5thmAAAADElEQVQI12P4wAAGAAaYAPHNBGMMAAAAAElFTkSuQmCC), url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAEAQMAAACTPww9AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURUdwTNbW1q782KsAAAABdFJOUwBA5thmAAAADElEQVQI12NoYABDAAgIAgFgDgI8AAAAAElFTkSuQmCC);
}
#border-radius {
border: 1px solid black;
border-radius: 2em;
}
#border-image {
border: 8px solid;
border-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPAQMAAAABGAcJAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAGUExURUdwTAAAAJ8qhFEAAAABdFJOUwBA5thmAAAAIklEQVQI12P4acfQvYih/xGIBLIVOBgKZBh+2IFIIBtVFgBU4g8RSRblqwAAAABJRU5ErkJggg==) 5;
}
#box-shadow {
border: 1px solid gray;
box-shadow: 5px 5px 5px gray;
}
</style>
</head>
<body>
<h1>CSS Backgrounds and Borders Level 3</h1>
<section id="background-image">
<h2>複数の背景画像</h2>
<ul>
<li>横線と縦線の2つの背景画像が合わさって格子柄になっていればOK</li>
</ul>
</section>
<section id="border-radius">
<h2>border-radius プロパティ</h2>
<ul>
<li>角が丸い枠で囲まれていればOK</li>
</ul>
</section>
<section id="border-image">
<h2>border-image プロパティ</h2>
<ul>
<li>飾り罫で囲まれていればOK</li>
</ul>
</section>
<section id="box-shadow">
<h2>box-shadow プロパティ</h2>
<ul>
<li>影付きの枠で囲まれていればOK</li>
</ul>
</section>
</body>
</html>