質問編集履歴
1
html追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -4,9 +4,47 @@
|
|
4
4
|
|
5
5
|
<a href="">を width="100%" height="100%" にしたのですが、<a href="">はposition:fixed;の画面全体が対象になっているので、ダメでした。
|
6
6
|
|
7
|
+
```HTML
|
7
8
|
|
9
|
+
<main class="root">
|
10
|
+
|
11
|
+
<div class="stage">
|
12
|
+
|
13
|
+
<div class="a"></div>
|
14
|
+
|
15
|
+
<div class="b"></div>
|
16
|
+
|
17
|
+
<div class="c"></div>
|
18
|
+
|
19
|
+
<div class="d"></div>
|
20
|
+
|
21
|
+
</div>
|
22
|
+
|
23
|
+
</main>
|
24
|
+
|
25
|
+
```
|
8
26
|
|
9
27
|
```CSS
|
28
|
+
|
29
|
+
.root{
|
30
|
+
|
31
|
+
position:fixed;
|
32
|
+
|
33
|
+
top:0; left:0;
|
34
|
+
|
35
|
+
width:100%; height:100%;
|
36
|
+
|
37
|
+
}
|
38
|
+
|
39
|
+
.stage{
|
40
|
+
|
41
|
+
position:absolute;
|
42
|
+
|
43
|
+
top:0; left:0;
|
44
|
+
|
45
|
+
width:100%; height:100%;
|
46
|
+
|
47
|
+
}
|
10
48
|
|
11
49
|
.a, .b, .c, .d{
|
12
50
|
|