質問編集履歴

1

CSSのコードを記載し忘れていました。すみませんm\(__\)m

2016/09/20 07:00

投稿

shohs
shohs

スコア10

test CHANGED
File without changes
test CHANGED
@@ -182,6 +182,130 @@
182
182
 
183
183
 
184
184
 
185
+ ```CSS
186
+
187
+
188
+
189
+
190
+
191
+ @charset "UTF-8";
192
+
193
+
194
+
195
+
196
+
197
+ h1 {
198
+
199
+ font-family: serif;
200
+
201
+ font-size: 28px;
202
+
203
+ color: #fff;
204
+
205
+ margin-top: 30px;
206
+
207
+ text-align: center;
208
+
209
+ }
210
+
211
+
212
+
213
+ h2 {
214
+
215
+ font-family: serif;
216
+
217
+ font-size: 20px;
218
+
219
+ margin-top: 30px;
220
+
221
+ text-align: center;
222
+
223
+ }
224
+
225
+
226
+
227
+ #bar {
228
+
229
+ height: 50px;
230
+
231
+ margin: 20px auto;
232
+
233
+ position: relative;
234
+
235
+ width: 200px;
236
+
237
+ }
238
+
239
+
240
+
241
+ #bar_over,
242
+
243
+ #bar_under {
244
+
245
+ height: 50px;
246
+
247
+ margin: 10;
248
+
249
+ position: absolute;
250
+
251
+ }
252
+
253
+
254
+
255
+
256
+
257
+ /*緑色のゲージ部分
258
+
259
+ 振った回数によってwidthの%を変えたい*/
260
+
261
+ #bar_over {
262
+
263
+ background: linear-gradient(#6cbb5a, #000);
264
+
265
+ background: -webkit-linear-gradient(#6cbb5a, #000);
266
+
267
+ background: -moz-linear-gradient(#6cbb5a, #000);
268
+
269
+ background: -o-linear-gradient(#6cbb5a, #000);
270
+
271
+ background: -ms-linear-gradient(#6cbb5a, #000);
272
+
273
+ width:0%;
274
+
275
+ z-index:2;
276
+
277
+ }
278
+
279
+ /*黒色のゲージ*/
280
+
281
+ #bar_under {
282
+
283
+ background: linear-gradient(#333, #000);
284
+
285
+ background: -webkit-linear-gradient(#333, #000);
286
+
287
+ background: -moz-linear-gradient(#333, #000);
288
+
289
+ background: -o-linear-gradient(#333, #000);
290
+
291
+ background: -ms-linear-gradient(#333, #000);
292
+
293
+ width: 100%;
294
+
295
+ z-index:1;
296
+
297
+ }
298
+
299
+ body{
300
+
301
+ background-color: #f5820b;
302
+
303
+ }
304
+
305
+
306
+
307
+ ```
308
+
185
309
  monacaのログ(ゲージが何%か)
186
310
 
187
311
  ![イメージ説明](0d2eeadd2b9cf194b40a475ed6054ec7.png)