我有以下的CSS:CSS DRY概念应用于
&.fixed-map {
width: 100%!important;
position: fixed!important;
left: 0;
}
&.under-750 {
width: 100%!important;
position: static;
}
&.over-1025 {
position: static;
}
,这都从CSS角度来看,性能提升?
&.fixed-map,
&.under-750 {
width: 100%!important;
}
&.under-750,
&.over-1025 {
position: static;
}
&.fixed-map {
position: fixed!important;
left: 0;
}
还是它只是一个更好的方式来编写CSS?
sass-lang.com/guide - 有关变量的一部分可能会来方便 – Zajo