单张表 谁能用Phpcms输出一个两行三列的效果
1个回答
展开全部
通过css 样式实现
<ul style=" width:100%">
{get sql="select * from phpcms_content where catid='34' and status='99' order by inputtime desc" rows="6"}
<li style=" width:32%; float:left"><a href="{$r[url]}" target="_blank">{str_cut($r[title],'40','')}</a></li>
{/get}
</ul>
<ul style=" width:100%">
{get sql="select * from phpcms_content where catid='34' and status='99' order by inputtime desc" rows="6"}
<li style=" width:32%; float:left"><a href="{$r[url]}" target="_blank">{str_cut($r[title],'40','')}</a></li>
{/get}
</ul>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询