Image resize of items jQuery

前端 未结 2 1141
眼角桃花
眼角桃花 2021-01-24 04:28

I have managed to fit automatically the images of the gallery per row depending if it´s horizontal (one image per row) or vertical (two images per row).

The problem now

2条回答
  •  无人共我
    2021-01-24 04:44

    use percentages for the container containing the image (for both it's width and height).. then also use percentage for the image's width and height as well (it doesn't have to be 100%, it just has to be a percentage relative to its container)

提交回复
热议问题