.container {
/* 其他样式 */
position: relative;
}
.container::before {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 20px;
background: linear-gradient(to top, rgba(238, 238, 238, 0.1), rgba(238, 238, 238, 0)); //top向上渐变,bottom向下渐变
}