Home  >  Article  >  Backend Development  >  smarty 换行范例 表格换行

smarty 换行范例 表格换行

WBOY
WBOYOriginal
2016-06-13 12:11:271019browse

smarty 换行实例 表格换行

在 foreach 中加入 key=count

  
  

   
   
   
  
  


每行放置三個 後換行 你喜欢换多少就改改参数就可以了!

  
  
      
  
  
  


另一種利用 cycle 來做換行的例子,但只能作到每行兩筆資料就換行的效果 只能换两行


  
   
      
"}>   
  

      
,
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn