質問編集履歴

1

HTMLやCSSを追記しました。

2018/02/06 01:35

投稿

Riko
Riko

スコア15

test CHANGED
File without changes
test CHANGED
@@ -18,6 +18,12 @@
18
18
 
19
19
  それをどうやったらいいのかがわかりません。
20
20
 
21
+ とりあえずコンテンツが下に追加できるかどうかを試したく、
22
+
23
+ まだサイトとしては簡易的なものです。
24
+
25
+ 追加できるようであれば、作り込んで行こうと思っています。
26
+
21
27
 
22
28
 
23
29
  どうぞご教授頂きたくお願いいたします。
@@ -34,6 +40,8 @@
34
40
 
35
41
 
36
42
 
43
+ ```ここに言語を入力
44
+
37
45
  ( function( $ ){
38
46
 
39
47
  String.prototype.format = function()
@@ -293,3 +301,349 @@
293
301
 
294
302
 
295
303
  })( jQuery );
304
+
305
+
306
+
307
+ ```
308
+
309
+
310
+
311
+
312
+
313
+
314
+
315
+
316
+
317
+
318
+
319
+
320
+
321
+ ```ここに言語を入力
322
+
323
+ <head>
324
+
325
+ <meta charset="utf-8">
326
+
327
+ <meta http-equiv="X-UA-Compatible" content="IE=edge">
328
+
329
+ <meta name="viewport" content="width=device-width, initial-scale=1">
330
+
331
+ <title>Untitled Document</title>
332
+
333
+ <!-- Bootstrap -->
334
+
335
+ <link href="css/bootstrap.css" rel="stylesheet">
336
+
337
+ <link href="css/base.css" rel="stylesheet">
338
+
339
+
340
+
341
+ <!-- background slided -->
342
+
343
+ <link rel="stylesheet" type="text/css" href="css/sublimeSlideshow.css" media="all" />
344
+
345
+ <link rel="stylesheet" type="text/css" href="css/index.css" media="all" />
346
+
347
+ <script type="text/javascript" src="js/loadCSS.js"></script>
348
+
349
+ <script type="text/javascript" src="js/jquery-1.11.3.min.js"></script>
350
+
351
+ <script type="text/javascript" src="js/jquery.sublimeSlideshow.js"></script>
352
+
353
+
354
+
355
+ <script type="text/javascript">
356
+
357
+ $(function(){
358
+
359
+ $.sublime_slideshow({
360
+
361
+ src:[
362
+
363
+ {url:"images/visual-01.jpg",title:"星空"},
364
+
365
+ {url:"images/visual-02.jpg"},
366
+
367
+ {url:"images/visual-03.jpg",title:"月夜"}
368
+
369
+ ],
370
+
371
+ duration: 7,
372
+
373
+ fade: 1,
374
+
375
+ scaling: 1.2,
376
+
377
+ rotating: 2,
378
+
379
+ overlay: "images/pattern.png"
380
+
381
+ });
382
+
383
+ });
384
+
385
+ </script>
386
+
387
+
388
+
389
+ <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
390
+
391
+ <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
392
+
393
+ <!--[if lt IE 9]>
394
+
395
+ <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
396
+
397
+ <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
398
+
399
+ <![endif]-->
400
+
401
+
402
+
403
+
404
+
405
+ </head>
406
+
407
+ <body>
408
+
409
+ <div id="visual_pc"></div>
410
+
411
+
412
+
413
+ <!-- sma -->
414
+
415
+ <div class="container-fluid visual sma_head">
416
+
417
+ <p><a id="modal-open">【クリックでモーダルウィンドウを開きます。】</a></p>
418
+
419
+ </div>
420
+
421
+
422
+
423
+ <div id="info">
424
+
425
+ <p id="pname">SublimeSlideshow</p>
426
+
427
+ <p id="pinfo">CSS3を利用したフルスクリーンスライドショーjQueryプラグイン</p>
428
+
429
+ <a id="link" target="_blank" href="http://tympanus.net/codrops/2012/01/02/fullscreen-background-image-slideshow-with-css3/">元ネタ</a>
430
+
431
+ </div>
432
+
433
+
434
+
435
+ <div id="FirstView">
436
+
437
+ <h2 class="text01">test</h2>
438
+
439
+ </div>
440
+
441
+
442
+
443
+ <!-- ここから下を表示させたい -->
444
+
445
+ <div id="cont">sitano</div>
446
+
447
+
448
+
449
+ <!-- Include all compiled plugins (below), or include individual files as needed -->
450
+
451
+ <script src="js/bootstrap.js"></script>
452
+
453
+ <script src="js/modal.js"></script>
454
+
455
+ </body>
456
+
457
+ </html>
458
+
459
+
460
+
461
+ ```
462
+
463
+
464
+
465
+
466
+
467
+ ```ここに言語を入力
468
+
469
+
470
+
471
+ /* スライダー用スタイル */
472
+
473
+
474
+
475
+ .sm-slider, .sm-slider::after {
476
+
477
+ margin: 0;
478
+
479
+ padding: 0;
480
+
481
+ list-style: none;
482
+
483
+ position: fixed;
484
+
485
+ width: 100%;
486
+
487
+ height: 100%;
488
+
489
+ top: 0px;
490
+
491
+ left: 0px;
492
+
493
+ z-index: -1;
494
+
495
+ }
496
+
497
+ /* 追加したスタイル */
498
+
499
+ #FirstView {
500
+
501
+ height: 100%;
502
+
503
+ background-image: url(../images/visual_txt01.png);
504
+
505
+ background-repeat: no-repeat;
506
+
507
+ background-position: center 48%;
508
+
509
+ text-align: center;
510
+
511
+ }
512
+
513
+ #FirstView .text01 {
514
+
515
+ display: none;
516
+
517
+ }
518
+
519
+
520
+
521
+
522
+
523
+ /* サイト全般のスタイル */
524
+
525
+
526
+
527
+ @media (min-width: 992px) {
528
+
529
+ .pcnone {
530
+
531
+ display: none;
532
+
533
+ }
534
+
535
+ }
536
+
537
+ @media (max-width: 991px) {
538
+
539
+ .smnone {
540
+
541
+ display: none;
542
+
543
+ }
544
+
545
+ }
546
+
547
+ /************ head ************/
548
+
549
+
550
+
551
+ @media (max-width: 767px) {
552
+
553
+ .pc_head {
554
+
555
+ display: none;
556
+
557
+ }
558
+
559
+ }
560
+
561
+ @media (min-width: 768px) {
562
+
563
+ .sma_head {
564
+
565
+ display: none;
566
+
567
+ }
568
+
569
+ }
570
+
571
+ /************ sma modal window ************/
572
+
573
+
574
+
575
+ #modal-open {
576
+
577
+ color: #cc0000;
578
+
579
+ }
580
+
581
+ /* モーダル コンテンツエリア */
582
+
583
+ #modal-main {
584
+
585
+   display: none;
586
+
587
+   width: 500px;
588
+
589
+   height: 300px;
590
+
591
+   margin: 0;
592
+
593
+   padding: 0;
594
+
595
+   background-color: #ffffff;
596
+
597
+   color: #666666;
598
+
599
+   position:fixed;
600
+
601
+   z-index: 2;
602
+
603
+ }
604
+
605
+ /* モーダル 背景エリア */
606
+
607
+ #modal-bg {
608
+
609
+   display:none;
610
+
611
+   width:100%;
612
+
613
+   height:100%;
614
+
615
+   background-color: rgba(0,0,0,0.5);
616
+
617
+   position:fixed;
618
+
619
+   top:0;
620
+
621
+   left:0;
622
+
623
+   z-index: 1;
624
+
625
+ }
626
+
627
+ #cont {
628
+
629
+ text-align: center;
630
+
631
+ width: auto;
632
+
633
+ margin-top: 0;
634
+
635
+ margin-right: auto;
636
+
637
+ margin-bottom: 0;
638
+
639
+ margin-left: auto;
640
+
641
+ background-color: #FFFFFF;
642
+
643
+ }
644
+
645
+
646
+
647
+
648
+
649
+ ```