Home  >  Article  >  Backend Development  >  关于smarty应用的一个怪有关问题

关于smarty应用的一个怪有关问题

WBOY
WBOYOriginal
2016-06-13 13:52:34779browse

关于smarty应用的一个怪问题
大家好,我现在用cycle语句实现表格隔行背景相异的效果,主要语句如下:
  {section name = ddc loop = $all}
 


*********************************************
现在发现的问题是:第二个颜色无论换成什么颜色,显示出来的颜色就是不对(就是变成另外一种颜色,而这种颜色是跟设置的第二个颜色变化而变化,不是一成不变的),而第一个无论换成什么颜色都对,我看了一下网页html源代码,是正确的,不知道是为什么?多谢大家了

 

------解决方案--------------------

{section name = ddc loop = $all}
 
 
 

{/section}

  {$all[ddc]}
 


从你给的代码上看来,并没有什么错误,检查一下其他css吧
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