Getting div to occupy full cell height

前端 未结 3 938
抹茶落季
抹茶落季 2020-12-20 23:24

How do I get divs within table cells to occupy the full height of the cell?

Setting div height=100% won\'t work unless the table cell has a fixed height on it, but

3条回答
  •  有刺的猬
    2020-12-21 00:00

    Did some Googling and found this thread in a forum. It seems to be impossible to do it via CSS. But this has a JavaScript solution. As suggested in my comment above, why not move the border CSS to the td?

提交回复
热议问题