新手问题 关于 css 问题

topswim · November 15, 2012 · Last by miclle replied at November 16, 2012 · 1968 hits

<tr class="<%= cycle('list_line_odd', 'list_line_even') %>" > 想用这个脚本实现间隔表格变色但不成功!不知道为什么?

你有定义 list_line_odd 和 list_line_even 的样式么...

为什么不用 CSS3?

table td { background: #FFF; }
table tr:nth-child(odd) td{ background: #CCC; }
You need to Sign in before reply, if you don't have an account, please Sign up first.