Automatically resize images with browser size using CSS

前端 未结 4 761
感情败类
感情败类 2020-11-27 12:07

I want all (or just some) of my images getting resized automatically when I resize my browser window. I\'ve found the following code - it doesn\'t do anything though.

<
4条回答
  •  一整个雨季
    2020-11-27 12:50

    The following works on all browsers for my 200 figures, for any width percentage -- despite being illegal. Jukka said 'Use it anyway.' (The class just floats the image left or right and sets margins.) I can't imagine why this isn't the standard approach!

    Schematic models of chromosomes ...
    

    Change the window width and the image scales obligingly.

提交回复
热议问题