举个例子:
<%
sql="select * from biao1"
set rs=conn.execute(sql)
while not rs.eof
select case rs("id")
case 1
response.write "<font color=yellow>"&rs("字段1")&rs("字段2")&...&"</font>"
case 2
response.write "<font color=red>"&rs("字段1")&rs("字段2")&...&"</font>"
case 3
response.write "<font color=purple>"&rs("字段1")&rs("字段2")&...&"</font>"
case 4
response.write "<font color=green>"&rs("字段1")&rs("字段2")&...&"</font>"
case else
response.write "<font color=white>"&rs("字段1")&rs("字段2")&...&"</font>"
end select
rs.movenext
wend
%>
这只是一个普通的例子,具体要怎么样,你还可以更改各种形式的。不知道这样说是否能理解!