mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-22 15:39:59 +00:00
carousel.md: Highlight the whole example for consistency.
This commit is contained in:
parent
c1ea5ac49a
commit
8217499640
@ -112,6 +112,7 @@ You can also add the indicators to the carousel, alongside the controls, too.
|
|||||||
|
|
||||||
Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. They can be easily hidden on smaller viewports, as shown below, with optional [display utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/display/). We hide them initially with `.d-none` and bring them back on medium-sized devices with `.d-md-block`.
|
Add captions to your slides easily with the `.carousel-caption` element within any `.carousel-item`. They can be easily hidden on smaller viewports, as shown below, with optional [display utilities]({{ site.baseurl }}/docs/{{ site.docs_version }}/utilities/display/). We hide them initially with `.d-none` and bring them back on medium-sized devices with `.d-md-block`.
|
||||||
|
|
||||||
|
{% capture example %}
|
||||||
<div class="bd-example">
|
<div class="bd-example">
|
||||||
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
|
<div id="carouselExampleCaptions" class="carousel slide" data-ride="carousel">
|
||||||
<ol class="carousel-indicators">
|
<ol class="carousel-indicators">
|
||||||
@ -152,16 +153,8 @@ Add captions to your slides easily with the `.carousel-caption` element within a
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endcapture %}
|
||||||
{% highlight html %}
|
{% include example.html content=example %}
|
||||||
<div class="carousel-item">
|
|
||||||
<img src="..." alt="...">
|
|
||||||
<div class="carousel-caption d-none d-md-block">
|
|
||||||
<h5>...</h5>
|
|
||||||
<p>...</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endhighlight %}
|
|
||||||
|
|
||||||
### Crossfade
|
### Crossfade
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user