CSS: set color for selected row in a table

前端 未结 4 629
無奈伤痛
無奈伤痛 2020-12-31 23:28

I need to add the following feature to my table:

When the user clicks on a row (selects it), the row is marked with the color #FFCF8B (the same as

4条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-31 23:56

    
    
    
    
    
    
    
    
    cell 1 cell 2 cell 3 cell 4 cell 5 cell 6
    cell 3 cell 4 cell 1 cell 2 cell 1 cell 2
    cell 5 cell 6 cell 1 cell 2 cell 1 cell 2
    cell 7 cell 8 cell 1 cell 2 cell 1 cell 2

提交回复
热议问题