Link entire table row?

后端 未结 8 1257
后悔当初
后悔当初 2020-12-01 03:43

I know it is possible to link an entire table cell with CSS.

.tableClass td a{
   display: block;
}

Is there a way to apply a link to an en

8条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-01 03:56

    Also it depends if you need to use a table element or not. You can imitate a table using CSS and make an A element the row

    
    

    css:

    .table{display:table;}
    .tr{display:table-row;}
    .td{display:table-cell;}
    .tr:hover{background-color:#ccc;}
    

提交回复
热议问题