这里做了左上角和右下角,transparent 后面控制切角大小,后面是背景颜色 background: linear-gradient(-45deg, transparent 4px, rgba(255, 255, 255, 0.1) 0) bottom right<