質問するログイン新規登録

質問編集履歴

2

追記

2018/01/19 01:46

投稿

dog57
dog57

スコア131

title CHANGED
File without changes
body CHANGED
@@ -8,4 +8,270 @@
8
8
  ![イメージ説明](99ed6f3ef493c38363092298ff6c2307.png)
9
9
 
10
10
  スマホ
11
- ![イメージ説明](da8093d37d0c42828aaf1a19c686a5f8.png)
11
+ ![イメージ説明](da8093d37d0c42828aaf1a19c686a5f8.png)
12
+
13
+ form.html
14
+ ```html
15
+ <!DOCTYPE html>
16
+ <html>
17
+
18
+ <head>
19
+ <meta charset="UTF-8">
20
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
21
+ <title>お問い合わせフォーム</title>
22
+ <link rel="stylesheet" href="style.css">
23
+ </head>
24
+
25
+ <body>
26
+
27
+ <div class="container">
28
+ <!-- ロゴ画像 -->
29
+ <a href="index.html"><img src="img/logo.png" alt="SOLT inc."></a>
30
+
31
+ <!-- 見出し -->
32
+ <h2 class="heading">お問い合わせフォーム</h2>
33
+
34
+ <!-- フォーム内容 -->
35
+ <form action="checkgetpara.html" method="get">
36
+ <table border="1" class="form-table">
37
+
38
+
39
+ <tr>
40
+ <td class="inquiry">名前</td>
41
+ <td><input type="text" name="name" size="20" class="name"></td>
42
+ </tr>
43
+
44
+
45
+ <tr>
46
+ <td class="inquiry">性別</td>
47
+ <td><label><input type="radio" name="sex" class="sex" value="男">男 </label><label><input type="radio" name="sex" value="女">女</label></td>
48
+ </tr>
49
+
50
+ <tr>
51
+ <td class="inquiry">血液型</td>
52
+ <td><select name="blood" class="blood">
53
+
54
+ <option value="A型">A型</option>
55
+ <option value="B型">B型</option>
56
+ <option value="O型">O型</option>
57
+ <option value="AB型">AB型</option>
58
+
59
+ </select>
60
+ </td>
61
+ </tr>
62
+
63
+ <tr>
64
+ <td class="inquiry">お問い合わせ内容</td>
65
+ <td><textarea rows=7 cols=70 name="contact" class="contact"></textarea></td>
66
+ </tr>
67
+
68
+
69
+ </table>
70
+
71
+ <div class="submit">
72
+ <input type="submit" value="送信する" class="submit-botton">
73
+ </div>
74
+
75
+ </form>
76
+
77
+
78
+
79
+
80
+
81
+
82
+ </div>
83
+
84
+ </body>
85
+
86
+ </html>
87
+
88
+ ```
89
+
90
+ style.css
91
+ ```css
92
+ @charset "utf-8";
93
+
94
+ * {
95
+ box-sizing: border-box;
96
+ }
97
+
98
+ body {
99
+ font-family: "sans-serif", "Hiragino Kaku Gothic ProN";
100
+ }
101
+
102
+ /* index.html のcss */
103
+
104
+ .list {
105
+ background-color: #c93a40;
106
+ text-align: center;
107
+ }
108
+
109
+ .list-item {
110
+ display: inline-block;
111
+ color: white;
112
+ transition: all 0.5s;
113
+ }
114
+
115
+ .list-item:hover {
116
+ background-color: rgba(255, 255, 255, 0.5);
117
+ }
118
+
119
+ .lists a {
120
+ padding: 25px 70px;
121
+ color: white;
122
+ display: inline-block;
123
+ text-decoration: none;
124
+ }
125
+
126
+ .top-img {
127
+ margin-top: 50px;
128
+ }
129
+
130
+ .image {
131
+ width: 100%;
132
+ }
133
+
134
+ .top-message {
135
+ border-bottom: 2px solid #999999;
136
+ }
137
+
138
+ .message-content {
139
+ margin-left: 15px;
140
+ }
141
+
142
+ .message-contents {
143
+ margin-left: 15px;
144
+ }
145
+
146
+ .member {
147
+ background-color: #FA6964;
148
+ padding: 10px 25px;
149
+ float: left;
150
+ width: 45%;
151
+ }
152
+
153
+ .recruit {
154
+ background-color: #FA6964;
155
+ padding: 10px 25px;
156
+ width: 45%;
157
+ float: right;
158
+ }
159
+
160
+
161
+ /* メディアクエリ スマホ max-width 768px */
162
+ @media (max-width: 768px) {
163
+
164
+ .member, recruit {
165
+ width: 100%;
166
+ margin-bottom: 30px;
167
+ }
168
+
169
+ .recruit {
170
+ width: 100%;
171
+ }
172
+
173
+ .list {
174
+ display: none;
175
+ }
176
+
177
+
178
+
179
+ }
180
+
181
+ /* 以下は form.html のcss */
182
+
183
+ .form-table {
184
+ width: 100%;
185
+ height: 70vh;
186
+ }
187
+
188
+ .heading {
189
+ border-bottom: 2px solid black;
190
+ }
191
+
192
+ .inquiry {
193
+ background-color: #fa8072;
194
+ padding-left: 20px;
195
+ }
196
+
197
+ .name {
198
+ font-size: 130%;
199
+ }
200
+
201
+ .name, .sex, .blood, .contact {
202
+ margin-left: 30px;
203
+ }
204
+
205
+ .submit {
206
+ text-align: center;
207
+ margin-top: 30px;
208
+ }
209
+
210
+ .submit-botton {
211
+ padding: 15px 100px;
212
+ background-color: #c93a40;
213
+ display: inline-block;
214
+ text-decoration: none;
215
+ color: #FFF;
216
+ border-bottom: solid 4px #627295;
217
+ border-radius: 5px;
218
+ }
219
+
220
+ .submit-botton:active {
221
+ -ms-transform: translateY(4px);
222
+ -webkit-transform: translateY(4px);
223
+ transform: translateY(4px);
224
+ /*下に動く*/
225
+ box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
226
+ /*影を小さく*/
227
+ border-bottom: none;
228
+ }
229
+
230
+
231
+ /* メディアクエリ スマホ max-width 768px */
232
+ @media (max-width: 768px) {
233
+
234
+ .heading {
235
+ border-bottom: 1px solid black;
236
+ }
237
+
238
+ .name, .contact {
239
+ margin: 0px;
240
+ }
241
+
242
+ table, tr, td {
243
+ border: none;
244
+ }
245
+
246
+ tr, td {
247
+ display: block;
248
+ margin: 30px 0px;
249
+ }
250
+
251
+
252
+
253
+ .inquiry {
254
+ border: solid 1px #627295;
255
+ padding: 14px 0px;
256
+ padding-left: 20px;
257
+ }
258
+
259
+ .name {
260
+ width: 100%;
261
+ padding: 4px 0px;
262
+
263
+ }
264
+
265
+ .blood {
266
+ padding: 3px 4px;
267
+ }
268
+
269
+ .contact {
270
+ width: 90%;
271
+ }
272
+
273
+
274
+
275
+
276
+ }
277
+ ```

1

画像の変更

2018/01/19 01:46

投稿

dog57
dog57

スコア131

title CHANGED
File without changes
body CHANGED
@@ -5,7 +5,7 @@
5
5
  ご教授いただけたら嬉しいです。よろしくお願いいたします。
6
6
 
7
7
  PC
8
- ![イメージ説明](4ec74f098b51b202e313c43130a99423.png)
8
+ ![イメージ説明](99ed6f3ef493c38363092298ff6c2307.png)
9
9
 
10
10
  スマホ
11
- ![イメージ説明](61d4dc2c78f26a56f04cda997ae140d4.png)
11
+ ![イメージ説明](da8093d37d0c42828aaf1a19c686a5f8.png)