How can I get a div to fill a table cell vertically?

后端 未结 2 1045
一整个雨季
一整个雨季 2020-12-31 08:27

As a followup to this question on absolute positioning within a table cell, I\'m trying to get something working in Firefox. Once again, I\'m about 95% there, and there\'s

2条回答
  •  萌比男神i
    2020-12-31 08:49

    Are you just trying to get the backrground to match the same colour? and not alignment, then you can use a background image in css to give the same effect, cos FF does not render the element to 100% inside a container. If the container is set on auto height, then the child will be set to auto too. The makes the rendering faster.

    So the best bet would be a css background image.

提交回复
热议问题