Re: [問題] 請問如何在秀出的資料錄上加上不同顏色
tbody tr:nth-child(even) {background :red }
tbody tr:nth-child(odd) {background: blue}
收工!
※ 引述《kokokokoko (22)》之銘言:
: <%
: Response.Write "<Tr>"
: For I=0 To RS.Fields.Count-1
: Response.Write "<Td>" & RS(I).Name & "</Td>"
: Next
: Response.Write "</Tr>"
: ===希望資料錄欄抬頭有顏色========以上
: Do While ((Rcount<RS.PageSize) And (Not RS.Eof))
: Response.Write "<Tr>"
: For I=0 To RS.Fields.Count-1
: Response.Write "<Td>" & RS(I).Value & "</Td>"
: Next
: Response.Write "</Tr>"
: RS.MoveNext
: Rcount=Rcount+1
: Loop
: %>
: ========希望在資料錄內容中單樹跟偶數筆資料能有不同顏色作為分別===以上
: 希望有經驗的大大幫幫忙~小弟是ASP新手~感謝各位
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 60.250.35.133
※ 編輯: fotofolio 來自: 60.250.35.133 (08/20 22:06)
推
08/21 06:11, , 1F
08/21 06:11, 1F
→
08/21 09:09, , 2F
08/21 09:09, 2F
討論串 (同標題文章)