The line-by-line update of a list refers toArticleIn the list, the background color of the first line and the last line is displayed alternately, also known as the zebra line, which adds a lot of colors to the webpage. Today, I saw Xiao Yi's post on Bi, "thinking about changing colors under the standard". The background of the two lines of UL is repeated. Although the method is good, the height of Li can only use the actual height in the background, not flexible enough, so I wrote one with ASP + CSS and used a custom list.
<% Set rs = ...... SQL = "...... "Rs. open SQL, Con, 1,1%> <DL> <% I = 0Do while not (RS. EOF or ERR) %> <DT> <a href = "http://www.forest53.com/tutorials_show.asp? Sortid = <% = RS ("sortid") %> & id = <% = RS ("ID") %> "> <% = RS (" biaoti ") %> </a> </DT> <% if I mod 2 = 0 then %> <DD> <% else %> <dd class = "two"> <% end if %> <% = RS ("zhaiyao ") %> </DD> <% I = I + 1RS. movenextloop %> </dl>