1.效果图 2.代码 <style lang="scss" scoped> .bg-content { width: 200px; height: 200px; background: #58a; background: linear-gradient(135deg, transparent 15px, #58a 0) top