迅睿CMS框架是一款PHP8高性能·简单易用的CMS开源开发框架,基于MIT开源许可协议发布,免费且不限制商业使用,是免费开源的产品,以万端互联为设计理念,支持的微信公众号、小程序、APP客户端、移动端网站、PC网站等多终端式管理系统。
如何可以让多图内容字段,在内容页一行三列展示图片。我这个代码只能多行展示。大家帮我看看那里错了。指点一下。谢谢。
现在代码如下:
<?php if ($t['fytp']) { foreach ($t['fytp'] as $c) { ?>
{$i}
<div style="width:50px; height:50px; overflow:hidden;">
<img src="{dr_thumb($c, 200, 200)}" >
</div> <?php } } ?>
{php $arr = array_chunk($t['fytp'], 3, true);} <?php if ($arr ) { foreach ($arr as $cc) { ?> <div style="width:50px; height:50px; overflow:hidden;"> {loop $cc $c} <img src="{dr_thumb($c, 200, 200)}" > {/loop} </div> <?php } } ?>
<img src="{dr_thumb($c, 200, 200)}" width="83" height="83" style="margin-top: 15px;">
</a><?php } } ?>