在SASS的班級選課中,我想選擇家長的兄弟姐妹。在SASS中,如何引用標籤選擇?
.bw-textarea {
height: 150px;
padding: 10px;
overflow-y: auto;
background: white;
text-align: left;
width: 100%;
border: 1px solid #eeeeee;
font-size: 12px !important;
color: #666666;
// textarea:disabled & {
// background: #efefef;
// }
}
上述SASS代碼的編譯,
.bw-textarea textarea:disabled {
background: #efefef;
}
但是我想表明這樣的CSS代碼的結果......
如何SASS選擇這樣嗎?
textarea.bw-textarea:disabled {
background: #efefef;
}
這是一個易於使用的正確答案並編寫更少的代碼。 – Brad