|
看了半天html_helper, 有点晕,就是想明白,ul() 标记中,如何给li加id或者class?比如要实现以下效果:
<ul>
<li>fasdfasdf</li>
<li>fasdfasdf</li>
<li class='test'>fasdfasdf</li>
</ul>
或者
<ul>
<li class='test'>fasdfasdf</li>
<li class='test'>fasdfasdf</li>
<li class='test'>fasdfasdf</li>
</ul>
有法子吗? |
|