Border around specific rows in a table?

后端 未结 10 1585
轮回少年
轮回少年 2020-12-02 08:10

I\'m trying to design some HTML/CSS that can put a border around specific rows in a table. Yes, I know I\'m not really supposed to use tables for layout but I don\'t know en

10条回答
  •  长情又很酷
    2020-12-02 08:47

    An easier way is to make the table a server side control. You could use something similar to this:

    Dim x As Integer
    table1.Border = "1"
    
    'Change the first 10 rows to have a black border
     For x = 1 To 10
         table1.Rows(x).BorderColor = "Black"
     Next
    
    'Change the rest of the rows to white
     For x = 11 To 22
         table1.Rows(x).BorderColor = "White"
     Next
    

提交回复
热议问题