定義是否可以添加另一個元素的定義類似另一種元素類型添加到使用Sass§
input {
&:not[type="submit"], &,textarea {
// styles that apply to inputs that are not submit buttons, and text areas
}
// other styles here that I don't want to apply to textareas
// do want to apply to inputs
}
我已經通過SASS文件看,但看不到任何東西,如果有人可以建議一種方法來做到這一點很棒。
謝謝
順便說一下,正確的語法是'&:not([type =「submit」])''。 – BoltClock
是的,謝謝。這實際上只是一個錯字。 – joewoodward