使用vh和vw单位即可 .slide { width: 100vw; } .info_img{ height:calc(100vw / 750 * 230); } 转载于:https://www.cnblogs.com/resultwp/p/9561535.html