一个斜的四边形 .top_ad_out::before { content: ''; position: absolute; z-index: -1; width: 336px; height: 250px; margin-top: 67px; margin-left: -4px; background: linear-gradient(to bottom, #fff, #cad5eb); -ms-transform: skewX(20deg); transform: skewX(20deg); -ms-transform-origin: right bottom; transform-origin: right bottom; } 转载于:https://www.cnblogs.com/yanyd/p/5425598.html