How to place pictures in containers with fixed width and height

  node.js, question

clipboard.png
I am like an upper container, the width and height are fixed, then I put a big picture in it, img is set to max-width:100%; The picture is very long, which leads to this kind of problem that cannot be laid down below. How will it end?

把图片设为容器的背景,加上cover后,只能显示一部分啊,更挫了

clipboard.png

Thank you for your invitation.

You should adjust your drawing or the size of your container.

Why? Just think: if the container is not high enough and you want to pave it, you can only stretch and deform it-but is this the result you want?