OSDN Git Service

408px
authoryamat0jp <yamat0jp@yahoo.co.jp>
Mon, 11 Sep 2017 00:00:01 +0000 (09:00 +0900)
committeryamat0jp <yamat0jp@yahoo.co.jp>
Mon, 11 Sep 2017 00:00:01 +0000 (09:00 +0900)
indicatorを文字に変えようかと思っています

static/css/top.css
static/js/top.js

index 44e28af..5a8a602 100644 (file)
@@ -29,7 +29,7 @@
 
 .slideshow-nav a:before,
 .slideshow-indicator a:before {
-       content:url(../img/sprites.png);
+       content:url(static/img/sprites.png);
        display:inline-block;
        font-size:0;
        line-height:0
@@ -53,7 +53,7 @@
 }
 
 .slideshow-nav a.next {
-       margin-left:480px
+       margin-left:408px
 }
 
 .slideshow-nav a.next:before {
index cb621d4..bf912d8 100644 (file)
@@ -16,7 +16,7 @@ $(function(){
                
                
                $slides.each(function(i){
-                       $(this).css({left:100+i+'%'});
+                       $(this).css({left:100*i+'%'});
                        indicatorHTML += '<a href="#">'+(i+1)+'</a>';
                });
                $indicator.html(indicatorHTML);