Is it possible to render an image in two sizes with correct proportion

后端 未结 3 709
不知归路
不知归路 2021-01-26 10:21

I have a website on which the products have just one pic associated with them. The dimension of pictures are generally +200 X 200+. At one place, i want to show

3条回答
  •  抹茶落季
    2021-01-26 10:53

    I assume that you have used IMG tag to display the same image at different places in different sizes. To display image in correct proportion, set one of the dimensions i.e; width or height the other will be adjusted automatically: Example:

     
    

    In the above code the image tag will automatically adjust the height for correct proportion.

    hope this helps

提交回复
热议问题