質問編集履歴
1
該当のソースコード蘭にソースを記載しました。またHTMLのコードを追記致しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
画面中央に問い合わせフォームを固定し、その画面背景をbackground-colorで調整するという事をやっています。(正確にはログインボタン等でクリックした際にモーダルを表示、画面背景を暗くするという処理を行っています。)
|
5
5
|
|
6
6
|
以下CSS
|
7
|
-
.modal-wrapper {
|
7
|
+
.modal-wrapper {
|
8
8
|
position: fixed;
|
9
9
|
top: 0;
|
10
10
|
right: 0;
|
@@ -14,7 +14,7 @@
|
|
14
14
|
z-index: 100;
|
15
15
|
}
|
16
16
|
|
17
|
-
.modal {
|
17
|
+
.modal {
|
18
18
|
position: absolute;
|
19
19
|
top: 20%;
|
20
20
|
left: 34%;
|
@@ -35,10 +35,10 @@
|
|
35
35
|
この3つを外してみた所、background-colorが適用されていませんでした。この理由も知りたいです。
|
36
36
|
よろしくお願い致します。
|
37
37
|
|
38
|
+
下記ソース修正致しました。
|
38
39
|
|
39
40
|
|
40
41
|
|
41
|
-
|
42
42
|
■■な機能を実装中に以下のエラーメッセージが発生しました。
|
43
43
|
|
44
44
|
### 発生している問題・エラーメッセージ
|
@@ -49,10 +49,93 @@
|
|
49
49
|
|
50
50
|
### 該当のソースコード
|
51
51
|
|
52
|
-
```
|
52
|
+
```HTML
|
53
|
+
<div class="signup-modal-wrapper" id="signup-modal">
|
54
|
+
<div class="modal">
|
53
|
-
|
55
|
+
<div>
|
56
|
+
<i class="fa fa-2x fa-times" id="close-modal"></i>
|
57
|
+
</div>
|
58
|
+
<div id="signup-form">
|
59
|
+
<h2>Emailで新規登録</h2>
|
60
|
+
<form action="#">
|
61
|
+
<input class="form-control" type="text" placeholder="メールアドレス">
|
62
|
+
<input class="form-control" type="password" placeholder="パスワード">
|
63
|
+
<div id="submit-btn">新規登録</div>
|
64
|
+
</form>
|
65
|
+
</div>
|
66
|
+
</div>
|
67
|
+
</div>
|
68
|
+
<!-- モーダルここまで -->
|
54
69
|
```
|
55
70
|
|
71
|
+
```CSS
|
72
|
+
|
73
|
+
/*モーダル*/
|
74
|
+
.signup-modal-wrapper {
|
75
|
+
position: fixed;
|
76
|
+
top: 0;
|
77
|
+
right: 0;
|
78
|
+
bottom: 0;
|
79
|
+
left: 0;
|
80
|
+
background-color: rgba(0, 0, 0, 0.6);
|
81
|
+
z-index: 100;
|
82
|
+
display: none;
|
83
|
+
}
|
84
|
+
|
85
|
+
.modal {
|
86
|
+
position: absolute;
|
87
|
+
top: 20%;
|
88
|
+
left: 34%;
|
89
|
+
background-color: #e6ecf0;
|
90
|
+
padding: 20px 0 40px;
|
91
|
+
border-radius: 10px;
|
92
|
+
width: 450px;
|
93
|
+
height: auto;
|
94
|
+
text-align: center;
|
95
|
+
}
|
96
|
+
|
97
|
+
.fa-times {
|
98
|
+
position: absolute;
|
99
|
+
top: 12px;
|
100
|
+
right: 12px;
|
101
|
+
color: rgba(128, 128, 128, 0.46);
|
102
|
+
cursor: pointer;
|
103
|
+
}
|
104
|
+
|
105
|
+
#signup-form {
|
106
|
+
width: 100%;
|
107
|
+
}
|
108
|
+
|
109
|
+
#signup-form h2 {
|
110
|
+
color: #5f5d60;
|
111
|
+
letter-spacing: 1px;
|
112
|
+
margin-bottom: 40px;
|
113
|
+
}
|
114
|
+
|
115
|
+
#signup-form input {
|
116
|
+
width: 320px;
|
117
|
+
margin-bottom: 20px;
|
118
|
+
font-size: 12px;
|
119
|
+
padding: 12px 12px;
|
120
|
+
border: 1px solid #d0d5d8;
|
121
|
+
border-radius: 5px;
|
122
|
+
}
|
123
|
+
|
124
|
+
#submit-btn {
|
125
|
+
display: inline-block;
|
126
|
+
padding: 14px 140px;
|
127
|
+
background-color: #5dca88;
|
128
|
+
border: none;
|
129
|
+
border-radius: 3px;
|
130
|
+
color: white;
|
131
|
+
margin: 10px auto;
|
132
|
+
cursor: pointer;
|
133
|
+
}
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
```
|
56
139
|
### 試したこと
|
57
140
|
|
58
141
|
ここに問題に対して試したことを記載してください。
|