How do I make a div fill an entire table cell?

前端 未结 6 2277
日久生厌
日久生厌 2020-12-09 18:26

I\'m trying to fill the center cell of a table with a div element. For the purposes of illustrating the problem, the div is styled with a red background. It seems to work

6条回答
  •  情书的邮戳
    2020-12-09 19:22

    have you tried changing css to:

    #centerCell{
        border: 1px solid black;
        height:100%;
    }
    

    seems to work for me on edge, firefox and chrome

提交回复
热议问题