How can a

前端 未结 11 1071
余生分开走
余生分开走 2020-12-30 19:20

Here is the relevant code (doesn\'t work):



testing td checkboxes



Some column title Another column title
Value 1
(a bit more info)
Value 2

Explanations:

  • the display:block makes the to take the full width
  • the min-height:2.3em; makes the to take the full height (the minimum height a little bit higher than two lines as there are two lines in the first cell of the row; you may need to increase, e.g. I use 3.3em in my code)
  • the vertical-align:-50% makes the checkbox to be aligned vertically at the center of the cell (this is only required if the cell content spans over less lines than the first cell of the row)

提交回复
热议问题