图片占位技巧,防止动态获取图片 网络慢,页面一跳一跳的情况发生
.food .image-header {
position: relative; width: 100%; height: 0; padding-top: 100%;
}
.food .image-header img {
position: absolute; top: 0; left: 0; width: 100%; height: 100%;
}