回答編集履歴
1
コード追加
answer
CHANGED
@@ -44,4 +44,53 @@
|
|
44
44
|
}
|
45
45
|
```
|
46
46
|
|
47
|
-
right が効かないので left にしてみたら効きました。理由はよく分かりません。
|
47
|
+
right が効かないので left にしてみたら効きました。理由はよく分かりません。
|
48
|
+
|
49
|
+
追記
|
50
|
+
---
|
51
|
+
下記でご希望のレイアウトになりませんか。
|
52
|
+
```html
|
53
|
+
<div class="container">
|
54
|
+
<div class="box-top">追尾1</div>
|
55
|
+
<div class="box-content">
|
56
|
+
test<br>test<br>test<br>test<br>test<br>
|
57
|
+
test<br>test<br>test<br>test<br>test<br>
|
58
|
+
test<br>test<br>test<br>test<br>test<br>
|
59
|
+
test<br>test<br>test<br>test<br>test<br>
|
60
|
+
test<br>test<br>test<br>test<br>test<br>
|
61
|
+
test<br>test<br>test<br>test<br>test<br>
|
62
|
+
test<br>test<br>test<br>test<br>test<br>
|
63
|
+
test<br>test
|
64
|
+
</div>
|
65
|
+
<div class="box-bottom">追尾2</div>
|
66
|
+
</div>
|
67
|
+
```
|
68
|
+
```css
|
69
|
+
body,html{
|
70
|
+
height:100%;
|
71
|
+
}
|
72
|
+
.container {
|
73
|
+
position:relative;
|
74
|
+
width:50%;
|
75
|
+
height:50%;
|
76
|
+
}
|
77
|
+
.box-content {
|
78
|
+
height:100%;
|
79
|
+
overflow-y:scroll;
|
80
|
+
-webkit-overflow-scrolling: touch;
|
81
|
+
}
|
82
|
+
.box-top {
|
83
|
+
width: 10%;
|
84
|
+
height: 5%;
|
85
|
+
position: absolute;
|
86
|
+
top: 10%;
|
87
|
+
right: 20%;
|
88
|
+
}
|
89
|
+
.box-bottom {
|
90
|
+
width: 10%;
|
91
|
+
height: 5%;
|
92
|
+
position: absolute;
|
93
|
+
bottom: 10%;
|
94
|
+
right: 20%;
|
95
|
+
}
|
96
|
+
```
|