我有一个200 x 200像素的div.我想在div的中间放置一个50 x 50像素的图像.
怎么做到呢?
我可以通过使用text-align: centerdiv 来使它水平居中.但垂直对齐是个问题..
text-align: center
html css
css ×1
html ×1