回答編集履歴
1
コード追記
test
CHANGED
@@ -23,3 +23,45 @@
|
|
23
23
|
}
|
24
24
|
|
25
25
|
```
|
26
|
+
|
27
|
+
|
28
|
+
|
29
|
+
flexを使えばいいか。
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
```css
|
34
|
+
|
35
|
+
header {
|
36
|
+
|
37
|
+
width:100%;
|
38
|
+
|
39
|
+
height:5rem;
|
40
|
+
|
41
|
+
margin:0 auto;
|
42
|
+
|
43
|
+
background-color:#f00;
|
44
|
+
|
45
|
+
display: flex;
|
46
|
+
|
47
|
+
justify-content: flex-end;
|
48
|
+
|
49
|
+
}
|
50
|
+
|
51
|
+
#top_bar{
|
52
|
+
|
53
|
+
position:fixed;
|
54
|
+
|
55
|
+
top:0;
|
56
|
+
|
57
|
+
margin:0;
|
58
|
+
|
59
|
+
background-color: #fff;
|
60
|
+
|
61
|
+
padding-bottom:0.3rem;
|
62
|
+
|
63
|
+
border-bottom:1px solid #ccc;
|
64
|
+
|
65
|
+
}
|
66
|
+
|
67
|
+
```
|