我试图通过我的图像循环显示在一个col,但似乎我无法使它工作。尝试了不同的方式,但也无法获得官方文档的帮助。 很高兴得到任何人的解决方案。以下是代码:
<section class="banner-home-bottom container">
<div class="widget-title wow fadeIn">
<fieldset class="box-title lang1">
<legend align="center">#Featured On Ella </legend>
</fieldset>
</div>
{% for object in object_list %}
<div class="row">
<ul class="row">
<li class="col-sm-4 wow fadeInUp" data-wow-delay="100ms">
<a href="#"><img src="{{ object.image.url }}" alt="" /></a>
<div class="des">
<h4 style="color: #000000;font-size: 20px;">
<span class="lang1">{{ object.title }}</span>
</h4>
<p style="color: #2d2d2d;font-size: 12px;">
<span class="lang1">{{ object.description }}.</span>
</p>
<a href="#" title="Shop Now " class="btn lang1">
Shop Now
<span class="arrow">arrow</span>
</a>
</div>
</li>
</ul>
{% cycle "" "" "" "</div><br/><hr/><div class='row'>" %}
</div>
</section>
{% endfor %}