【发布时间】:2018-10-12 02:38:03
【问题描述】:
在我的 spring boot thymeleaf 中,以下代码是滑块不能正常工作。在图像中显示结果。 该代码有什么问题。请检查一下。
<ol class="carousel-indicators">
<th:block th:each="picture, iterstat : ${package.picture}">
<li data-target="#jsaAboutCarousel" th:attr="data-slide-to=${iterstat.index}" th:class="${iterstat.index}== 0 ? 'active':''"></li>
</th:block>
</ol>
<!-- Wrapper for slides -->
<div class="carousel-inner">
<div th:each="picture, iterstat : ${package.picture}">
<th:block th:class="${iterstat.index}== 0 ? 'item':'item active'">
<img th:src="@{${baseurl}+'/backend/getPackageImagePath/' + ${picture}}" class="img-responsive" />
</th:block>
</div>
</div>
<!-- Left and right controls -->
<a class="left carousel-control" href="#jsaAboutCarousel" data-slide="prev">
<span class="glyphicon glyphicon-chevron-left"></span>
<span class="sr-only">Previous</span>
</a>
<a class="right carousel-control" href="#jsaAboutCarousel" data-slide="next">
<span class="glyphicon glyphicon-chevron-right"></span>
<span class="sr-only">Next</span>
</a>
</div>
【问题讨论】:
标签: spring-boot thymeleaf