<div class="box"> <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fwww.08lr.cn%2Fuploads%2Fallimg%2F170513%2F1-1F513164126.jpg&refer=http%3A%2F%2Fwww.08lr.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1614342078&t=573647a01fca7ff9b16298550fa909ce"> </div>
.box { width: 300px; height: 200px; background: #f0f0f0; overflow: auto; } .box>img { /* position: absolute; */ width: 200px; }