<?php foreach($this->posts_list as $key => $val) { ?> <li class="fh"> <h4> <?php if ($val['is_recommend']) { ?> <?php if ($val['question_id']) { ?> <a href="question/<?php echo $val['question_id']; ?>"><?php echo $val['question_content']; ?></a> <?php } else { ?> <a href="article/<?php echo $val['id']; ?>"><?php echo $val['title']; ?></a> <?php } ?><?php } ?> </h4></li><?php } ?>调用列表出来是出来了,但是为什么 是样的,中间隔一行。如图
AI智能回复搜索中,请稍后...
3 回答
posts_list as $key => $val) { ?> ['is_recommend']) { ?>