export const aspectRatio = (width, height) => {io
height: 0,di
overflow: 'hidden',co
paddingBottom: `${(height / width) * 100}%`,asp
}const
padding-bottom 值为百分比时,百分比与其所在元素的父元素的宽度相关。