How to auto resize the image for responsive design with pure css?

前端 未结 8 1146
萌比男神i
萌比男神i 2021-02-14 16:27

I have tried to auto resize the image using the CSS property max-width, but it does\'t work in IE7 and IE8. Is there any way to auto resize the image with pure CSS

8条回答
  •  误落风尘
    2021-02-14 16:52

    Most web-developers know that IE has fallen behind in the race for standards and being able to show the latest and greatest. Many CSS2 properties are unsupported. Some of the more useful ones, are properties such as max-width, max-height, min-width and finally min-height. Try this:

    
    
    
    

    [alot of text]

提交回复
热议问题