質問編集履歴

2

恐らく、関係していそうな部分のコードの追記をいたしました。

2018/09/04 08:32

投稿

_hbk
_hbk

スコア9

test CHANGED
File without changes
test CHANGED
@@ -49,3 +49,161 @@
49
49
  [GitHub - Hib3/radio](https://github.com/Hib3/radio)
50
50
 
51
51
  よろしくおねがいします。
52
+
53
+
54
+
55
+ ```HTML
56
+
57
+ <!doctype html>
58
+
59
+ <html>
60
+
61
+ <head>
62
+
63
+
64
+
65
+ <!--CSS -->
66
+
67
+ <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" />
68
+
69
+ <!--JS -->
70
+
71
+ <!--bootstrapとJQuery-->
72
+
73
+ <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
74
+
75
+ <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
76
+
77
+ <meta charset="utf-8">
78
+
79
+ <title>ラヂオボタン</title>
80
+
81
+
82
+
83
+ <style type="text/css">
84
+
85
+ body {
86
+
87
+
88
+
89
+ width:50%;
90
+
91
+
92
+
93
+ /* 画像ファイルの指定 */
94
+
95
+ background: url(image/bg.png) 0 0 no-repeat;
96
+
97
+
98
+
99
+ /* 画像を常に天地左右の中央に配置 */
100
+
101
+ background-position: center center;
102
+
103
+
104
+
105
+ /* コンテンツの高さが画像の高さより大きい時、動かないように固定 */
106
+
107
+ background-attachment: fixed;
108
+
109
+
110
+
111
+ /* 表示するコンテナの大きさに基づいて、背景画像を調整 */
112
+
113
+ background-size:cover;
114
+
115
+
116
+
117
+ /* 背景画像が読み込まれる前に表示される背景のカラー */
118
+
119
+ background-color: #ffffff;
120
+
121
+
122
+
123
+ }
124
+
125
+ body::before{
126
+
127
+ content: '';
128
+
129
+ display:block;
130
+
131
+ padding-top:50%;
132
+
133
+ }
134
+
135
+
136
+
137
+ input[type=radio]:focus {
138
+
139
+ box-shadow: 0 0 30px royalblue;
140
+
141
+ border-radius:20px;
142
+
143
+ }
144
+
145
+ input[type=radio]:focus:checked{
146
+
147
+ box-shadow:none;
148
+
149
+ }
150
+
151
+ input[type=radio] {
152
+
153
+ border: 0px;
154
+
155
+ width: X;
156
+
157
+ height: X;
158
+
159
+ }
160
+
161
+
162
+
163
+ <body>
164
+
165
+
166
+
167
+ ラヂオボタン<br>
168
+
169
+
170
+
171
+ <audio id="music" preload="none">
172
+
173
+ <!--autoplay onコントローラーなし-->
174
+
175
+ <source src="http://37.220.36.53:7904/;?type=http&amp;nocache=18236" type="audio/mpeg">
176
+
177
+ </audio>
178
+
179
+
180
+
181
+ <ul class="container">
182
+
183
+ <div class="button">
184
+
185
+ <input name="checkit" type="radio" onclick="a1()" class="radiobox-tremolo">
186
+
187
+ <input name="checkit" type="radio" onclick="a2()" class="radiobox-tremolo">
188
+
189
+
190
+
191
+ ※…a50まであります
192
+
193
+
194
+
195
+ <input name="checkit" type="radio" onclick="a50()" class="radiobox-tremolo"> <br>
196
+
197
+ </div>
198
+
199
+ </ul>
200
+
201
+ <script>
202
+
203
+ </script>
204
+
205
+ </body>
206
+
207
+ </html>
208
+
209
+ ```

1

初心者マーク記載しました。

2018/09/04 08:32

投稿

_hbk
_hbk

スコア9

test CHANGED
File without changes
test CHANGED
File without changes