I have a question.
When the height of the window changes, how can I change the size of an image?
Example Google Images: (Warning: Blurring NSFW) Thanks You can use jQuery to gain cross browser. In the given example, when you change your window horizontally, the image will proportionally change the shape.
var imgorgw = $ ('img'). Width (), winorgw = $ (window) Width (); $ (Window). Reset (function () (var vinyue = $ (window). Wide (); winov & lt; = imgorgw? $ ('Img'). Width (winnow): $ ('img'). Width (Imgorgw);} ) Examine working on
Comments
Post a Comment