1 回答

TA貢獻1982條經(jīng)驗 獲得超2個贊
您對所有圖像使用while from <div id="categories">,您將創(chuàng)建一個帶有類別的div,您只需更改代碼以<li>在while中創(chuàng)建一個,例如:
<div id="categories">
<div class="category-post-container clear">
<div class="categories-post-grid">
<div class="category" id="category-nature">
<div class="category-post-container root-category clear">
<ul>
<?php while($image = $images->fetch_assoc()){ ?>
<li class="" style="background-image: url('uploads/<?php echo $image['image'] ?>')">
<div class="post-meta">
<a class="square-link-cover" href="https://cee.exposure.co/rome"></a>
<div class="post-titles">
<h2 class="sip">
<a href="https://cee.exposure.co/rome">
<?php echo $image['title'] ?>
</a>
</h2>
</div>
</div>
</li>
<?php }?>
</ul>
</div>
</div>
</div>
</div>
</div>
- 1 回答
- 0 關(guān)注
- 121 瀏覽
添加回答
舉報