Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
このような
@ShuttleGrey: #606369;
より多くの変数から同じ出力カラー値が必要です [単一行のソリューションを探しています]
@themeOne:, @themeTwo:, @themeThree: @ShuttleGrey;
私は自分のコードがエラーであることを知っています.この状況を修正する方法を知っている人はいますか?
ありがとう
同じプロパティを多くの場所に適用したいと仮定すると、次のようなことができます
.aProperty{ color:#606369 }
次に、このようなことを行って、同じプロパティを他の要素に追加できます
.anotherProperty{ background:#000; //just like that .aProperty; }
この方法.anotherPropertyは のプロパティを継承します aProperty。 このようにして、他のプロパティを追加して、多くの場所で使用することもできます。
.anotherProperty
aProperty