Resizing background-image always proportionally to scale with a center point
问题 I want to be able to reproduce the behavior of this website's image when resizing. It seems like the background-image has a center point where the image start to crop when it cannot keep its proportion scale. Here is an example: http://themes.evgenyfireform.com/wp-jad/ For now my background has the following css: #bg { position: fixed; top: 0; left: 0px; width:100%; } The problem is that it's fixed and I want it to crop when the image can't be scale. 回答1: You are looking for this combination: