这样加个伪类把: div { width: 1280px; height: 720px; border-radius: 36px; position: relative; overflow: hidden; } div::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: #fff; border-radius: 40px; } img { width: 100%; height: 100%; transition: 250ms; position: relative; z-index: 2; border-radius: 36px; } img:hover { transform: scale(1.2); } 