Controlling the size of an image within a CSS Grid layout
问题 I have a CSS grid layout with a bunch of areas and a photo container. I don't know how to: control the size of the photo, so that it is contained within the area of the grid keep the width of the photo at 100% (thus equal to its container) and scale the height of the container to fit the photo. Basically, when the window becomes smaller, the width of the photo becomes smaller, and so does the height - pulling the tag, album, and rotate elements up. .container { display: grid; grid-template