中间向两边
background: linear-gradient(to right,rgba(27,27,27,0) 0%, rgba(27,27,27,0.02) 50%, rgba(27,27,27,0) 100%);
顶部向底部
background: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0) );
background: linear-gradient(to right,rgba(27,27,27,0) 0%, rgba(27,27,27,0.02) 50%, rgba(27,27,27,0) 100%);
background: linear-gradient(to bottom, rgba(255,255,255,.4), rgba(255,255,255,0) );