关于区域置灰----总体思路就是利用::before伪元素覆盖一下
.disagree{ border:2px solid red; border-radius: 4px; position: relative; &::before { content: ''; background-color: #f9f9f999; position: absolute; width: 100%; height: 100%; z-index: 10; left: 0; top: 0; } }
.disagree{ border:2px solid red; border-radius: 4px; position: relative; &::before { content: ''; background-color: #f9f9f999; position: absolute; width: 100%; height: 100%; z-index: 10; left: 0; top: 0; } }