答案 0 :(得分:1)
增加或减少第二个div的宽度。确保内部图像不是width:100%
或响应
<html>
<head>
<title>Test</title>
</head>
<body>
<div id="img1" style="position: absolute;top: 0;">
<img src="amplitude.svg">
</div>
<div id="img2" style="position: absolute;top: 0;width: 20%;overflow: hidden;">
<img src="amplitude-progress.svg">
</div>
</body>
</html>