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

質問編集履歴

1

内容を追加

2018/12/11 02:47

投稿

beginner02458
beginner02458

スコア11

title CHANGED
File without changes
body CHANGED
@@ -11,4 +11,102 @@
11
11
  ラジオボタンが最終チェック(「この内容で送信してもいいですか?」のボタン)なので、特にこちらは入力があるかどうかは出てほしいです。
12
12
 
13
13
  どうにかして表示したいのですが方法はありますか?
14
- もし、不可能だったりとても面倒なことになるようでしたら、従来通りcgi側でエラーページを表示するようにします。
14
+ もし、不可能だったりとても面倒なことになるようでしたら、従来通りcgi側でエラーページを表示するようにします。
15
+
16
+ ----
17
+ 内容を追加します。
18
+
19
+ ```html
20
+ <input type="radio" name="お問合せ種類" value="AAAについて" id="radio_a01" required><label for="radio_a01" class="radio">AAAに関して</label>
21
+ <input type="radio" name="お問合せ種類" value="bbbについて" id="radio_a02"><label for="radio_a02" class="radio">bbbについて</label>
22
+ <input type="radio" name="お問合せ種類" value="cccについて" id="radio_a03"><label for="radio_a03" class="radio">cccについて</label>
23
+ <input type="radio" name="お問合せ種類" value="その他" id="radio_a04"><label for="radio_a04" class="radio">その他</label>
24
+
25
+ <input type="checkbox" name="チェック" value="Y " id="checkbox_c1" required>
26
+ <label for="checkbox_c1" class="checkbox contact4">内容確認チェック</label>
27
+ ```
28
+
29
+ ```css
30
+ /*各フォームデザイン*/
31
+ input[type=radio], input[type=checkbox] {
32
+ display: none;
33
+ }
34
+
35
+ .radio, .checkbox {
36
+ box-sizing: border-box;
37
+ -webkit-transition: background-color 0.2s linear;
38
+ transition: background-color 0.2s linear;
39
+ position: relative;
40
+ display: inline-block;
41
+ margin: 0 10px 8px 0;
42
+ padding: 12px 12px 12px 42px;
43
+ border-radius: 8px;
44
+ background-color: #EA9F54;
45
+ vertical-align: middle;
46
+ cursor: pointer;
47
+ color:#FFF;
48
+
49
+ }
50
+ .radio:hover, .checkbox:hover {
51
+ background-color: #efc9a3;
52
+ color:#73462B;
53
+ }
54
+ .radio:hover:after, .checkbox:hover:after {
55
+ border-color: #E00B05;
56
+ }
57
+ .radio:after, .checkbox:after {
58
+ -webkit-transition: border-color 0.2s linear;
59
+ transition: border-color 0.2s linear;
60
+ position: absolute;
61
+ top: 50%;
62
+ left: 15px;
63
+ display: block;
64
+ margin-top: -10px;
65
+ width: 16px;
66
+ height: 16px;
67
+ border: 2px solid #fff;
68
+ border-radius: 6px;
69
+ content: '';
70
+ }
71
+
72
+ .radio:before {
73
+ -webkit-transition: opacity 0.2s linear;
74
+ transition: opacity 0.2s linear;
75
+ position: absolute;
76
+ top: 50%;
77
+ left: 20px;
78
+ display: block;
79
+ margin-top: -5px;
80
+ width: 10px;
81
+ height: 10px;
82
+ border-radius: 50%;
83
+ background-color:#E00B05;
84
+ content: '';
85
+ opacity: 0;
86
+ }
87
+ input[type=radio]:checked + .radio:before {
88
+ opacity: 1;
89
+ }
90
+
91
+ .checkbox:before {
92
+ -webkit-transition: opacity 0.2s linear;
93
+ transition: opacity 0.2s linear;
94
+ position: absolute;
95
+ top: 50%;
96
+ left: 21px;
97
+ display: block;
98
+ margin-top: -7px;
99
+ width: 5px;
100
+ height: 9px;
101
+ border-right: 3px solid #E00B05;
102
+ border-bottom: 3px solid #E00B05;
103
+ content: '';
104
+ opacity: 0;
105
+ -webkit-transform: rotate(45deg);
106
+ -ms-transform: rotate(45deg);
107
+ transform: rotate(45deg);
108
+ }
109
+ input[type=checkbox]:checked + .checkbox:before {
110
+ opacity: 1;
111
+ }
112
+ ```