Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/haskell/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Html 如何更改引导转盘指示器和控件_Html_Css_Twitter Bootstrap_Twitter Bootstrap 3 - Fatal编程技术网

Html 如何更改引导转盘指示器和控件

Html 如何更改引导转盘指示器和控件,html,css,twitter-bootstrap,twitter-bootstrap-3,Html,Css,Twitter Bootstrap,Twitter Bootstrap 3,我试图改变引导转盘指示器和控件的位置。看起来像这个网站上的旋转木马。指示灯和控件位于底部,远离图像 这是我的现场视图 我无法打开您的示例站点,但您可以将这些指示器移出当前位置,并将其放置在您希望的位置。我将它们从代码笔的标题中移出,将它们包装在一个容器中,并添加了一些样式以将它们移动到图像下方并居中: <div class="carousel-controls"> <a class="left carousel-control" href="#slidesho

我试图改变引导转盘指示器和控件的位置。看起来像这个网站上的旋转木马。指示灯和控件位于底部,远离图像

这是我的现场视图



  • 我无法打开您的示例站点,但您可以将这些指示器移出当前位置,并将其放置在您希望的位置。我将它们从代码笔的标题中移出,将它们包装在一个容器中,并添加了一些样式以将它们移动到图像下方并居中:

    <div class="carousel-controls">
        <a class="left carousel-control" href="#slideshow" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left"></span>
        </a>
        <ol class="carousel-indicators">   
            <li data-target="#slideshow" data-slide-to="0" class="active"></li>
            <li data-target="#slideshow" data-slide-to="1"></li>
            <li data-target="#slideshow" data-slide-to="2"></li>
            <li data-target="#slideshow" data-slide-to="3"></li>
        </ol>
        <a class="right carousel-control" href="#slideshow" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right"></span>
        </a>
    </div>
    

    ref:

    您可以编辑bootstrap.js,将多个类识别为指示器

    var Carousel = function (element, options) {
        this.$element    = $(element)
        this.$indicators = this.$element.find('.carousel-indicators, .your-class-here')
    

    这是一个转盘模板,带有可定位控件,底部有一个进度导航栏,用于跟踪幻灯片

    
    .Slideshow_旋转木马包装器{
    显示:-webkit flex;
    显示器:flex;
    -webkit对齐项目:居中;
    对齐项目:居中;
    -webkit内容:中心;
    证明内容:中心;
    文本对齐:居中;
    宽度:100%;
    }
    /*幻灯片显示控件左/右*/
    .幻灯片放映-ctl-L{
    -webkit-flex:无;
    flex:无;
    z指数:200;
    最高:40%;
    右边距:5px;
    高度:60px;
    宽度:16px;
    不透明度:0.7;
    背景尺寸:15px 60px;
    背景重复:无重复;
    背景图片:url(…);
    }
    .幻灯片放映-ctl-R{
    -webkit-flex:无;
    flex:无;
    最高:40%;
    左边距:5px;
    高度:60px;
    宽度:15px;
    不透明度:0.7;
    背景尺寸:15px 60px;
    背景重复:无重复;
    背景图片:url(…);
    }
    
    如何使旋转木马控件位于旋转木马指示灯的任一侧?现在还有另一个问题,指示灯没有显示活动幻灯片。它只是停留在第一个指示器上。在第三方库中进行更改是个坏主意。这些更改将使升级更加困难。
    .carousel-controls{
     position:relative; 
      width:300px;
      margin:0 auto;
    }
    
    .carousel-indicators{
       top:0px; 
    }
    
    var Carousel = function (element, options) {
        this.$element    = $(element)
        this.$indicators = this.$element.find('.carousel-indicators, .your-class-here')
    
    <!-- HTML -->
    
        <div class="Slideshow_carousel-wrapper container-fluid">
            <span class="Slideshow-ctl-L" onclick="carousel_left()"></span>
            <div class="carousel slide" data-ride="carousel"  ... </div>    
            <span class="Slideshow-ctl-R" onclick="carousel_right()"></span>
    
        </div>
    
    <!-- /HTML -->
    
    <!-- CSS -->
    
    .Slideshow_carousel-wrapper {
    
        display: -webkit-flex;
        display:         flex;
    
    
        -webkit-align-items: center;
        align-items: center;
        -webkit-justify-content: center;
        justify-content: center;
    
        text-align:center;
    
        width:100%; 
    }
    
    
    
    /* SLIDESHOW CONTROLS LEFT / RIGHT */
    .Slideshow-ctl-L {
    
        -webkit-flex: none;
         flex: none;
    
        z-index:200;
    
        top:40%;
        margin-right:5px;
    
        height:60px;
        width:16px;
    
        opacity:0.7;
    
        background-size:15px 60px;
        background-repeat:no-repeat;
        background-image: url( ... );
    }
    
    
    
    .Slideshow-ctl-R {
    
        -webkit-flex: none;
         flex: none;
    
    
        top:40%;
        margin-left:5px;
    
        height:60px;
        width:15px;
    
    
        opacity:0.7;
    
        background-size:15px 60px;
        background-repeat:no-repeat;
        background-image: url( ... );
    }
    
    <!-- CSS -->