移动端页面,少不了图片,但是手机端要适应的平台相对较多,如果图片写死了,多平台会很难看,只有图片宽和高同时动态响应才可以。
那么了解下图片的等比例适配
position: relative;
background-color: #FFFFFF;
width: 100%;
height: 0;
padding-bottom: 55.8823%;
background
移动端页面,少不了图片,但是手机端要适应的平台相对较多,如果图片写死了,多平台会很难看,只有图片宽和高同时动态响应才可以。
那么了解下图片的等比例适配
position: relative;
background-color: #FFFFFF;
width: 100%;
height: 0;
padding-bottom: 55.8823%;
background