更新时间:2022-06-25 21:57:33
您可以使用div上的背景来替换图片:
You can replace the image by a background on the div like this :
<div style="background:url(myimage.jpg) no-repeat center center"></div>
垂直对齐中心图像在固定大小div
在中心和中间对齐图像在div