What would be the best way to resize a content div to match the browser, keeping a white margin around it, whilst also resizing an image contained within it, so that it keeps a good aspect ratio?
this is the effect i am looking to create: http://www.louisvuitton.com/
无论是主体还是另一个块元素容器,您都将设置容器的边距
body {margin:20px;}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.