-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path3.html
More file actions
38 lines (33 loc) · 756 Bytes
/
3.html
File metadata and controls
38 lines (33 loc) · 756 Bytes
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
<!DOCTYPE html>
<html lang="ja" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<meta name="format-detection" content="email=no,telephone=no,address=no" />
<title>=^.^=</title>
<style>
.parent {
display: grid;
grid-template-columns: repeat(3, 200px);
}
.div1 { grid-area: 1 / 1 / 2 / 2; }
.div2 { grid-area: 1 / 2 / 2 / 3; }
.div3 { grid-area: 1 / 3 / 2 / 4; }
.div4 { grid-area: 2 / 2 / 3 / 3; }
.div1,
.div2,
.div3,
.div4 {
border: 1px solid orange;
}
</style>
</head>
<body>
<div class="parent">
<div class="div1">上 左</div>
<div class="div2">上 中央</div>
<div class="div3">上 右</div>
<div class="div4">下 中央</div>
</div>
</body>
</html>