久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <small id='0g4oC'></small><noframes id='0g4oC'>

  1. <i id='0g4oC'><tr id='0g4oC'><dt id='0g4oC'><q id='0g4oC'><span id='0g4oC'><b id='0g4oC'><form id='0g4oC'><ins id='0g4oC'></ins><ul id='0g4oC'></ul><sub id='0g4oC'></sub></form><legend id='0g4oC'></legend><bdo id='0g4oC'><pre id='0g4oC'><center id='0g4oC'></center></pre></bdo></b><th id='0g4oC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='0g4oC'><tfoot id='0g4oC'></tfoot><dl id='0g4oC'><fieldset id='0g4oC'></fieldset></dl></div>

    <tfoot id='0g4oC'></tfoot>

      • <bdo id='0g4oC'></bdo><ul id='0g4oC'></ul>
    1. <legend id='0g4oC'><style id='0g4oC'><dir id='0g4oC'><q id='0g4oC'></q></dir></style></legend>
    2. 如何將 Bootstrap Carousel 圖像標題放置在 carousel d

      How to place Bootstrap Carousel image captions outside the carousel div?(如何將 Bootstrap Carousel 圖像標題放置在 carousel div 之外?)
          <tbody id='8F6D1'></tbody>

        <legend id='8F6D1'><style id='8F6D1'><dir id='8F6D1'><q id='8F6D1'></q></dir></style></legend>

          <tfoot id='8F6D1'></tfoot>

            1. <i id='8F6D1'><tr id='8F6D1'><dt id='8F6D1'><q id='8F6D1'><span id='8F6D1'><b id='8F6D1'><form id='8F6D1'><ins id='8F6D1'></ins><ul id='8F6D1'></ul><sub id='8F6D1'></sub></form><legend id='8F6D1'></legend><bdo id='8F6D1'><pre id='8F6D1'><center id='8F6D1'></center></pre></bdo></b><th id='8F6D1'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8F6D1'><tfoot id='8F6D1'></tfoot><dl id='8F6D1'><fieldset id='8F6D1'></fieldset></dl></div>
            2. <small id='8F6D1'></small><noframes id='8F6D1'>

                <bdo id='8F6D1'></bdo><ul id='8F6D1'></ul>
                本文介紹了如何將 Bootstrap Carousel 圖像標題放置在 carousel div 之外?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                問題描述

                如果這已經在此處的任何地方被覆蓋,我們深表歉意.我嘗試搜索,但只找到與輪播代碼中的樣式和定位標題相關的主題......

                所以,我有一個包含三列的布局:

                1. 左列包含與每個頁面/項目相關的一般信息.
                2. 中間一列包含一個帶有圖像的 Bootstrap 3 輪播圖.
                3. 右欄是我計劃在中央輪播中顯示與圖像相關的所有標題的位置.

                我不太明白如何讓字幕在右欄中工作.澄清一下,標題將隨著每個輪播幻燈片而變化,就像它們在默認輪播設置中所做的一樣.我基本上是想將圖片的標題移到右欄中.

                我使用 Kirby (www.getkirby.com) 作為我的 CMS,我使用 foreach 循環來獲取輪播中圖像等的代碼.這是我當前的代碼,包括標題部分(我正在嘗試移動...)

                <?php $imagepage = $page->children()->first() ?><?php if($imagepage->hasImages()): ?><div id="merry-go-round" class="旋轉木馬幻燈片"><!-- 幻燈片包裝器--><div class="carousel-inner"><?php $n=0;foreach($imagepage->images() as $image): $n++;?><div class="item<?php if($n==1) echo 'active' ?>"><img style="display:block; margin-left: auto; margin-right: auto;"src="<?php echo $image->url() ?>"alt="<?php echo html($image->title()) ?>"class="img-responsive"><div class="carousel-caption"><?php echo $image->img_title() ?></div>

                <?php endforeach ?><?php endif ?></div><!--/carousel-inner --><!-- 控件--><a class="left carousel-control" href="#merry-go-round" data-slide="prev"></a><a class="right carousel-control" href="#merry-go-round" data-slide="next"></a></div><!--/merry-go-round --></div><!--/#center --><div id="right" class="col-xs-12 col-sm-3 col-md-2"><p>這是我嘗試放置輪播字幕的地方...</p></div><!--/#right -->

                我已經盡力了,但我完全沒有想法.我想也許我可以做一些事情,比如讓標題成為一個變量:

                <?php $test_caption = $image->img_title() ?><?php echo $test_caption ?>

                但這在輪播區域之外不起作用.我猜是它不能在 foreach 循環之外工作?

                無論如何,如果有人有任何建議,我將不勝感激.我一直在學習 PHP,但我不知道任何 javascript,所以我希望有一個解決方案.再說一次,我使用的是 Bootstrap 3.

                這是我制作的小提琴的鏈接(沒有所有的 php 內容……):

                http://jsfiddle.net/4tMfJ/2/

                解決方案

                基于 Twitter Bootstrap Carousel - 訪問當前索引

                您可以將以下代碼添加到您的 javascript 中(加載 jquery/bootstrap 后)

                $(function() {$('.carousel').carousel();var caption = $('div.item:nth-child(1) .carousel-caption');$('#right h1').html(caption.html());caption.css('顯示','無');$(".carousel").on('slide.bs.carousel', function(evt) {var caption = $('div.item:nth-child(' + ($(evt.relatedTarget).index()+1) + ') .carousel-caption');$('#right h1').html(caption.html());caption.css('顯示','無');});});

                另見:http://jsfiddle.net/4tMfJ/3/

                apologies if this has been covered anywhere here. I tried searching, but only found topics related to styling and positioning captions within the carousel code…

                So, I have a layout that contains three columns:

                1. The left column contains general information related to each page/project.
                2. The center column contains a Bootstrap 3 carousel with images.
                3. The right column is where I was planning on displaying all the captions related to the images in the center Carousel.

                I can't quite figure out how to get the captions working in the right column. To clarify, the captions will change with each carousel slide, just as they do in the default carousel setting. I basically want to move the captions off the image, and into the right column.

                I am using Kirby (www.getkirby.com) as my CMS and I am using a foreach loop to get the code for the images, etc. in the carousel. Here is my current code, including the caption section (which I am trying to move…)

                <div id="center" class="col-xs-12 col-sm-6 col-md-8">
                    <?php $imagepage = $page->children()->first() ?>
                    <?php if($imagepage->hasImages()): ?> 
                    <div id="merry-go-round" class="carousel slide">
                        <!-- Wrapper for slides -->
                        <div class="carousel-inner">
                            <?php $n=0; foreach($imagepage->images() as $image): $n++; ?>               
                            <div class="item<?php if($n==1) echo ' active' ?>">
                                <img style="display:block; margin-left: auto; margin-right: auto;" src="<?php echo $image->url() ?>" alt="<?php echo html($image->title()) ?>" class="img-responsive">
                                <div class="carousel-caption"><?php echo $image->img_title() ?></div>
                            </div>
                    <?php endforeach ?>
                    <?php endif ?>
                        </div><!-- /carousel-inner -->
                        <!-- Controls -->
                        <a class="left carousel-control" href="#merry-go-round" data-slide="prev"></a>
                        <a class="right carousel-control" href="#merry-go-round" data-slide="next"></a>
                    </div><!-- /merry-go-round -->
                </div><!-- /#center -->
                
                <div id="right" class="col-xs-12 col-sm-3 col-md-2">
                    <p>THIS IS WHERE I AM TRYING TO PUT THE CAROUSEL CAPTIONS…</p>
                </div><!-- /#right -->
                

                I've tried by best but I am all out of ideas. I thought maybe I could do something like make the caption a variable:

                <?php $test_caption = $image->img_title() ?><?php echo $test_caption ?>
                

                but this doesn't work outside the carousel area. I'm guessing it's that it won't work outside of the foreach loop?

                Anyway, if anyone has any suggestions I would really appreciate it. I'm learning PHP as I go along, but I don't know any javascript so I'm hoping there's a solution outside that. And again, I'm using Bootstrap 3.

                Here is a link to a fiddle I made (without all the php stuff…):

                http://jsfiddle.net/4tMfJ/2/

                解決方案

                Based on Twitter Bootstrap Carousel - access current index

                You can add the code below to your javascript (after loading jquery / bootstrap)

                $(function() {
                $('.carousel').carousel();
                var caption = $('div.item:nth-child(1) .carousel-caption');
                $('#right h1').html(caption.html());
                caption.css('display','none');
                $(".carousel").on('slide.bs.carousel', function(evt) {
                
                
                   var caption = $('div.item:nth-child(' + ($(evt.relatedTarget).index()+1) + ') .carousel-caption');
                   $('#right h1').html(caption.html());
                   caption.css('display','none');
                });
                });
                

                also see: http://jsfiddle.net/4tMfJ/3/

                這篇關于如何將 Bootstrap Carousel 圖像標題放置在 carousel div 之外?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                相關文檔推薦

                Deadlock exception code for PHP, MySQL PDOException?(PHP、MySQL PDOException 的死鎖異常代碼?)
                PHP PDO MySQL scrollable cursor doesn#39;t work(PHP PDO MySQL 可滾動游標不起作用)
                PHP PDO ODBC connection(PHP PDO ODBC 連接)
                Using PDO::FETCH_CLASS with Magic Methods(使用 PDO::FETCH_CLASS 和魔術方法)
                php pdo get only one value from mysql; value that equals to variable(php pdo 只從 mysql 獲取一個值;等于變量的值)
                MSSQL PDO could not find driver(MSSQL PDO 找不到驅動程序)
                    <tbody id='BmMMC'></tbody>
                  <i id='BmMMC'><tr id='BmMMC'><dt id='BmMMC'><q id='BmMMC'><span id='BmMMC'><b id='BmMMC'><form id='BmMMC'><ins id='BmMMC'></ins><ul id='BmMMC'></ul><sub id='BmMMC'></sub></form><legend id='BmMMC'></legend><bdo id='BmMMC'><pre id='BmMMC'><center id='BmMMC'></center></pre></bdo></b><th id='BmMMC'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='BmMMC'><tfoot id='BmMMC'></tfoot><dl id='BmMMC'><fieldset id='BmMMC'></fieldset></dl></div>
                    <bdo id='BmMMC'></bdo><ul id='BmMMC'></ul>

                    • <tfoot id='BmMMC'></tfoot>

                        <small id='BmMMC'></small><noframes id='BmMMC'>

                      1. <legend id='BmMMC'><style id='BmMMC'><dir id='BmMMC'><q id='BmMMC'></q></dir></style></legend>
                          主站蜘蛛池模板: 久久中文免费视频 | 日韩中文字幕在线免费 | 亚洲精品成人在线 | 日韩中文字幕在线免费 | aaaaaaa片毛片免费观看 | 一级黄色av电影 | 国产91久久久久 | 色小姐综合网 | 一级做a爰片久久毛片免费看 | 欧美又大粗又爽又黄大片视频 | 欧美综合一区二区三区 | 狠狠的操 | 国产乱码精品一区二区三区忘忧草 | 性一区| 成人久久视频 | 国产欧美日韩久久久 | 91国在线| 成人欧美一区二区三区白人 | 偷拍自拍在线观看 | 中文字幕一区在线观看视频 | 精品自拍视频 | 2021天天躁夜夜看 | 蜜桃一区| 欧美中文在线 | 91亚洲视频在线 | 国产97色 | 久久一区二区av | 啪啪精品 | 亚洲 中文 欧美 日韩 在线观看 | 免费一级淫片aaa片毛片a级 | 国产精品嫩草影院精东 | 成人婷婷| 日韩中文在线 | 九九热在线免费观看 | 99久久久无码国产精品 | 欧美aⅴ在线观看 | av黄色在线播放 | 欧美高清视频 | 中文字幕一级 | 国产精品夜间视频香蕉 | 91一区二区 |