質問編集履歴
3
css追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,6 +11,13 @@
|
|
11
11
|
モーダルウィンドウが出てきて閉じるまでは出来ました。
|
12
12
|
|
13
13
|
後ろのbodyが固定してくれれば完成なのですが、あと1歩が出来ません。
|
14
|
+
|
15
|
+
cssが漏れていました。
|
16
|
+
.fixed {
|
17
|
+
position: fixed !important;
|
18
|
+
left:0;
|
19
|
+
}
|
20
|
+
を追加したら固定出来たのですが、後ろの画面の表示がおかしくなります。
|
14
21
|
|
15
22
|
どうぞご教授願います。
|
16
23
|
|
@@ -188,6 +195,11 @@
|
|
188
195
|
color: #fff;
|
189
196
|
cursor: pointer;
|
190
197
|
}
|
198
|
+
|
199
|
+
.fixed {
|
200
|
+
position: fixed !important;
|
201
|
+
left:0;
|
202
|
+
}
|
191
203
|
```
|
192
204
|
|
193
205
|
### 試したこと
|
2
css記述追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -113,6 +113,81 @@
|
|
113
113
|
```
|
114
114
|
|
115
115
|
```css
|
116
|
+
/*モーダルを開くボタン*/
|
117
|
+
.modal-open {
|
118
|
+
color: #fff;
|
119
|
+
margin: auto;
|
120
|
+
cursor: pointer;
|
121
|
+
border: none;
|
122
|
+
}
|
123
|
+
/*モーダル内のコンテンツの指定*/
|
124
|
+
.modal-content {
|
125
|
+
background: #fff;
|
126
|
+
text-align: left;
|
127
|
+
padding: 30px;
|
128
|
+
}
|
129
|
+
|
130
|
+
/*モーダル本体の指定 + モーダル外側の背景の指定*/
|
131
|
+
.modal-container {
|
132
|
+
position: fixed;
|
133
|
+
top: 0;
|
134
|
+
left: 0;
|
135
|
+
width: 100%;
|
136
|
+
height: 100%;
|
137
|
+
text-align: center;
|
138
|
+
background: rgba(0, 0, 0, 50%);
|
139
|
+
padding: 40px 20px;
|
140
|
+
overflow: auto;
|
141
|
+
opacity: 0;
|
142
|
+
visibility: hidden;
|
143
|
+
transition: .3s;
|
144
|
+
box-sizing: border-box;
|
145
|
+
z-index: 100;
|
146
|
+
}
|
147
|
+
|
148
|
+
/*モーダル本体の擬似要素の指定*/
|
149
|
+
.modal-container:before {
|
150
|
+
content: "";
|
151
|
+
display: inline-block;
|
152
|
+
vertical-align: middle;
|
153
|
+
height: 100%;
|
154
|
+
}
|
155
|
+
|
156
|
+
/*モーダル本体に「active」クラス付与した時のスタイル*/
|
157
|
+
.modal-container.active {
|
158
|
+
opacity: 1;
|
159
|
+
visibility: visible;
|
160
|
+
}
|
161
|
+
|
162
|
+
/*モーダル枠の指定*/
|
163
|
+
.modal-body {
|
164
|
+
position: relative;
|
165
|
+
display: inline-block;
|
166
|
+
vertical-align: middle;
|
167
|
+
max-width: 800px;
|
168
|
+
width: 100%;
|
169
|
+
}
|
170
|
+
.modal-iframe{
|
171
|
+
-webkit-overflow-scrolling: touch;
|
172
|
+
overflow: scroll;
|
173
|
+
width: 100% !important;
|
174
|
+
height: 500px !important;
|
175
|
+
margin-bottom: 20px;
|
176
|
+
}
|
177
|
+
/*モーダルを閉じるボタンの指定*/
|
178
|
+
.modal-close {
|
179
|
+
position: absolute;
|
180
|
+
display: flex;
|
181
|
+
align-items: center;
|
182
|
+
justify-content: center;
|
183
|
+
top: -40px;
|
184
|
+
right: -40px;
|
185
|
+
width: 40px;
|
186
|
+
height: 40px;
|
187
|
+
font-size: 40px;
|
188
|
+
color: #fff;
|
189
|
+
cursor: pointer;
|
190
|
+
}
|
116
191
|
```
|
117
192
|
|
118
193
|
### 試したこと
|
1
プライバシーにかかわるところ
test
CHANGED
File without changes
|
test
CHANGED
@@ -86,8 +86,8 @@
|
|
86
86
|
<img class="pc-none" src="img/image_big_002_sp.png" alt="">
|
87
87
|
</div>
|
88
88
|
<div class="line-button-block white-button">
|
89
|
-
<div class="line-button-block-catch-copy">
|
89
|
+
<div class="line-button-block-catch-copy">xxx</div>
|
90
|
-
<a class="line-button" href="
|
90
|
+
<a class="line-button" href="#">
|
91
91
|
<i class="fa-brands fa-line"></i>
|
92
92
|
<div>
|
93
93
|
<div class="line-button-block-copy-01">xxx</div>
|
@@ -105,7 +105,7 @@
|
|
105
105
|
<div class="modal-close">X</div>
|
106
106
|
<!-- モーダル内のコンテンツ -->
|
107
107
|
<div class="modal-content">
|
108
|
-
<iframe class="modal-iframe" src="
|
108
|
+
<iframe class="modal-iframe" src="/caution" frameborder="0"></iframe>
|
109
109
|
</div>
|
110
110
|
</div>
|
111
111
|
</div>
|