Make an image to fit its parent dimensions

后端 未结 6 1408
梦如初夏
梦如初夏 2020-12-14 00:25

I have some photos which have big sizes, I would like to set them to the Parent\'s dimension size. If one time the parent dimension is 1200x800, I would like to set the phot

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-14 00:55

    Try this in the image tag

    
    

    Or set the backgound of the element as the image and do the same.

提交回复
热议问题