首页 > 后端开发 > php教程 > thinkphp 怎么样输出?

thinkphp 怎么样输出?

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
发布: 2016-06-23 13:54:44
原创
906 人浏览过

 怎么样循环输出以下内容?    

  <div class="slide">			<div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div>                                               <div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div>                      <div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div></div> <div class="slide">			<div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div>                                               <div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div>                      <div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div></div> <div class="slide">			<div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div>                                               <div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div>                      <div class="itemm">						<a href="" target="_blank"><img src="/static/imghw/default1.png"  data-src="images/243.jpg}"  class="lazy"      style="max-width:90%"  style="max-width:90%" alt="Slide 1"></a>					<center><p>产品1</p> </center>			</div></div>
登录后复制


回复讨论(解决方案)

我这样操作不行:





thinkphp 怎么样输出?

{$val['tmname']}

 


                        

                    


这样数据全部在  div  class="itemm   里了。怎么样三个一组包括在

你不用他的模板引擎的吗?那你用它的什么呢?

用的,这个不是在模板中输出的???

相关标签:
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
最新问题
#####为什么没输出
来自于 1970-01-01 08:00:00
0
0
0
默认输出类型为json,如何输出html
来自于 1970-01-01 08:00:00
0
0
0
javascript 输出的值
来自于 1970-01-01 08:00:00
0
0
0
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板