質問編集履歴
2
文章の訂正
test
CHANGED
File without changes
|
test
CHANGED
@@ -11,3 +11,145 @@
|
|
11
11
|
お分かりになる方いらっしゃいましたら教えていただきたいです。
|
12
12
|
|
13
13
|
よろしくお願いします。
|
14
|
+
|
15
|
+
```html
|
16
|
+
|
17
|
+
<section>
|
18
|
+
|
19
|
+
<a href="#modal_01" class="btn">Modal 01</a>
|
20
|
+
|
21
|
+
<div class="remodal" data-remodal-id="modal_01">
|
22
|
+
|
23
|
+
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto01.jpg" alt="125naroom"></div>
|
24
|
+
|
25
|
+
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
26
|
+
|
27
|
+
</div>
|
28
|
+
|
29
|
+
</section>
|
30
|
+
|
31
|
+
|
32
|
+
|
33
|
+
<section>
|
34
|
+
|
35
|
+
<a href="#modal_02" class="btn">Modal 02</a>
|
36
|
+
|
37
|
+
<div class="remodal" data-remodal-id="modal_02">
|
38
|
+
|
39
|
+
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto02.jpg" alt="125naroom"></div>
|
40
|
+
|
41
|
+
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
42
|
+
|
43
|
+
</div>
|
44
|
+
|
45
|
+
</section>
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
<section>
|
50
|
+
|
51
|
+
<a href="#modal_03" class="btn">Modal 03</a>
|
52
|
+
|
53
|
+
<div class="remodal" data-remodal-id="modal_03">
|
54
|
+
|
55
|
+
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto03.jpg" alt="125naroom"></div>
|
56
|
+
|
57
|
+
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
58
|
+
|
59
|
+
</div>
|
60
|
+
|
61
|
+
</section>
|
62
|
+
|
63
|
+
|
64
|
+
|
65
|
+
<section>
|
66
|
+
|
67
|
+
<a href="#modal_04" class="btn">Modal 04</a>
|
68
|
+
|
69
|
+
<div class="remodal" data-remodal-id="modal_04">
|
70
|
+
|
71
|
+
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto05.jpg" alt="125naroom"></div>
|
72
|
+
|
73
|
+
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
74
|
+
|
75
|
+
</div>
|
76
|
+
|
77
|
+
</section>
|
78
|
+
|
79
|
+
```
|
80
|
+
|
81
|
+
```css
|
82
|
+
|
83
|
+
.btn {
|
84
|
+
|
85
|
+
display: flex;
|
86
|
+
|
87
|
+
justify-content: center;
|
88
|
+
|
89
|
+
align-items: center;
|
90
|
+
|
91
|
+
background: #ffffff;
|
92
|
+
|
93
|
+
border: 2px solid #b4b1a0;
|
94
|
+
|
95
|
+
color: #4c4833;
|
96
|
+
|
97
|
+
width: 300px;
|
98
|
+
|
99
|
+
height: 80px;
|
100
|
+
|
101
|
+
box-sizing: border-box;
|
102
|
+
|
103
|
+
text-decoration: none;
|
104
|
+
|
105
|
+
transition-duration: 0.3s;
|
106
|
+
|
107
|
+
}
|
108
|
+
|
109
|
+
.btn:hover {
|
110
|
+
|
111
|
+
background: #b4b1a0;
|
112
|
+
|
113
|
+
color: #ffffff;
|
114
|
+
|
115
|
+
}
|
116
|
+
|
117
|
+
.remodal {
|
118
|
+
|
119
|
+
position: relative;
|
120
|
+
|
121
|
+
padding: 25px;
|
122
|
+
|
123
|
+
}
|
124
|
+
|
125
|
+
.remodal img {
|
126
|
+
|
127
|
+
width: 100%;
|
128
|
+
|
129
|
+
height: auto;
|
130
|
+
|
131
|
+
vertical-align: top;
|
132
|
+
|
133
|
+
}
|
134
|
+
|
135
|
+
.remodal-cancel {
|
136
|
+
|
137
|
+
color: #fff;
|
138
|
+
|
139
|
+
background: #000000;
|
140
|
+
|
141
|
+
width: 100%;
|
142
|
+
|
143
|
+
margin-top: 25px;
|
144
|
+
|
145
|
+
}
|
146
|
+
|
147
|
+
.remodal-cancel:hover {
|
148
|
+
|
149
|
+
background: #333;
|
150
|
+
|
151
|
+
}
|
152
|
+
|
153
|
+
|
154
|
+
|
155
|
+
```
|
1
c言語削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
お世話になります。
|
2
2
|
|
3
|
-
|
3
|
+
複数のモーダルを使っているページを作成中です
|
4
4
|
|
5
5
|
モーダルを開いた状態でブラウザバックするとモーダルが出てきてしまうのですが
|
6
6
|
|
@@ -11,199 +11,3 @@
|
|
11
11
|
お分かりになる方いらっしゃいましたら教えていただきたいです。
|
12
12
|
|
13
13
|
よろしくお願いします。
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
[リンク内容](https://125naroom.com/demo/remodal.html#)
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
```html
|
22
|
-
|
23
|
-
<section>
|
24
|
-
|
25
|
-
<a href="#modal_01" class="btn">Modal 01</a>
|
26
|
-
|
27
|
-
<div class="remodal" data-remodal-id="modal_01">
|
28
|
-
|
29
|
-
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto01.jpg" alt="125naroom"></div>
|
30
|
-
|
31
|
-
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
32
|
-
|
33
|
-
</div>
|
34
|
-
|
35
|
-
</section>
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
<section>
|
40
|
-
|
41
|
-
<a href="#modal_02" class="btn">Modal 02</a>
|
42
|
-
|
43
|
-
<div class="remodal" data-remodal-id="modal_02">
|
44
|
-
|
45
|
-
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto02.jpg" alt="125naroom"></div>
|
46
|
-
|
47
|
-
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
48
|
-
|
49
|
-
</div>
|
50
|
-
|
51
|
-
</section>
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<section>
|
56
|
-
|
57
|
-
<a href="#modal_03" class="btn">Modal 03</a>
|
58
|
-
|
59
|
-
<div class="remodal" data-remodal-id="modal_03">
|
60
|
-
|
61
|
-
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto03.jpg" alt="125naroom"></div>
|
62
|
-
|
63
|
-
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
64
|
-
|
65
|
-
</div>
|
66
|
-
|
67
|
-
</section>
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
<section>
|
72
|
-
|
73
|
-
<a href="#modal_04" class="btn">Modal 04</a>
|
74
|
-
|
75
|
-
<div class="remodal" data-remodal-id="modal_04">
|
76
|
-
|
77
|
-
<div><img src="https://125naroom.com/demo/img/itukanokotonokoto05.jpg" alt="125naroom"></div>
|
78
|
-
|
79
|
-
<button data-remodal-action="cancel" class="remodal-cancel">閉じる</button>
|
80
|
-
|
81
|
-
</div>
|
82
|
-
|
83
|
-
</section>
|
84
|
-
|
85
|
-
```
|
86
|
-
|
87
|
-
```css
|
88
|
-
|
89
|
-
.btn {
|
90
|
-
|
91
|
-
display: flex;
|
92
|
-
|
93
|
-
justify-content: center;
|
94
|
-
|
95
|
-
align-items: center;
|
96
|
-
|
97
|
-
background: #ffffff;
|
98
|
-
|
99
|
-
border: 2px solid #b4b1a0;
|
100
|
-
|
101
|
-
color: #4c4833;
|
102
|
-
|
103
|
-
width: 300px;
|
104
|
-
|
105
|
-
height: 80px;
|
106
|
-
|
107
|
-
box-sizing: border-box;
|
108
|
-
|
109
|
-
text-decoration: none;
|
110
|
-
|
111
|
-
transition-duration: 0.3s;
|
112
|
-
|
113
|
-
}
|
114
|
-
|
115
|
-
.btn:hover {
|
116
|
-
|
117
|
-
background: #b4b1a0;
|
118
|
-
|
119
|
-
color: #ffffff;
|
120
|
-
|
121
|
-
}
|
122
|
-
|
123
|
-
.remodal {
|
124
|
-
|
125
|
-
position: relative;
|
126
|
-
|
127
|
-
padding: 25px;
|
128
|
-
|
129
|
-
}
|
130
|
-
|
131
|
-
.remodal img {
|
132
|
-
|
133
|
-
width: 100%;
|
134
|
-
|
135
|
-
height: auto;
|
136
|
-
|
137
|
-
vertical-align: top;
|
138
|
-
|
139
|
-
}
|
140
|
-
|
141
|
-
.remodal-cancel {
|
142
|
-
|
143
|
-
color: #fff;
|
144
|
-
|
145
|
-
background: #000000;
|
146
|
-
|
147
|
-
width: 100%;
|
148
|
-
|
149
|
-
margin-top: 25px;
|
150
|
-
|
151
|
-
}
|
152
|
-
|
153
|
-
.remodal-cancel:hover {
|
154
|
-
|
155
|
-
background: #333;
|
156
|
-
|
157
|
-
}
|
158
|
-
|
159
|
-
/*====================================================================
|
160
|
-
|
161
|
-
以下は不要です。
|
162
|
-
|
163
|
-
====================================================================*/
|
164
|
-
|
165
|
-
body {
|
166
|
-
|
167
|
-
display: flex;
|
168
|
-
|
169
|
-
flex-wrap: wrap;
|
170
|
-
|
171
|
-
justify-content: space-around;
|
172
|
-
|
173
|
-
box-sizing: border-box;
|
174
|
-
|
175
|
-
padding: 1em 0;
|
176
|
-
|
177
|
-
padding: 50px 0;
|
178
|
-
|
179
|
-
font-family: YuGothic, "游ゴシック体", "Yu Gothic", "ヒラギノ角ゴ Pro", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, "MS Pゴシック", "MS PGothic", sans-serif;
|
180
|
-
|
181
|
-
font-size: 16px;
|
182
|
-
|
183
|
-
letter-spacing: .025em;
|
184
|
-
|
185
|
-
line-height: 1.8;
|
186
|
-
|
187
|
-
margin: 0;
|
188
|
-
|
189
|
-
}
|
190
|
-
|
191
|
-
section {
|
192
|
-
|
193
|
-
width: fit-content;
|
194
|
-
|
195
|
-
margin: 0 1% 30px 0;
|
196
|
-
|
197
|
-
}
|
198
|
-
|
199
|
-
@media screen and (max-width: 1024px) {
|
200
|
-
|
201
|
-
body {
|
202
|
-
|
203
|
-
font-size: 14px;
|
204
|
-
|
205
|
-
}
|
206
|
-
|
207
|
-
}
|
208
|
-
|
209
|
-
```
|