.Head{ background-image: url("../../Img/PersonalCenter/banner.png"); background-repeat: no-repeat; background-size: 100%; width: 100%; height: calc(41vw + 25px); background-color:white; text-align:center; }
描述 背景圖片高313px 寬750px,高寬佔比約爲41%
元素爲了能夠讓背景寬度100% 高度自適應且高度爲完全顯示背景圖片後多餘25像素顯示其他內容。特地設置Head的高度爲 calc(41vw + 25px) 41vw 爲屏幕像素寬度的41%
效果: