Set the parent element (td):
display: table-cell
Set the child elements (such as img):
vertical-align: middle
effect:
Set the parent element (td):
display: table-cell
Set the child elements (such as img):
vertical-align: middle
effect: