Getting a table to fill 100% height in a td

前端 未结 5 1128
灰色年华
灰色年华 2021-01-13 05:42

I\'m trying to rewrite a site in proper HTML. The site I\'m trying to replace was a complete mess. I\'ve run into a problem where I can\'t get a

t
5条回答
  •  心在旅途
    2021-01-13 06:14

    The best solution for this is to have the parent element of the button have a height of 100% as well, assuming you want your button to have a height of 100%.

    e.g

CSS:

td{
    height: 100%;
}
.btn {
    width: 100%;
    height: 100%;
}

That should work fine

提交回复
热议问题