stretch混合宏問題
請問,在stretch混合宏中,定義是如下:
? position: absolute;
? @if $offset-top {
??? top: $offset-top;
? }
? 那么 $offset-top 值是0時,編譯出來的 CSS 怎么會有 top:0 呢?如果要生成 top:0,應該有 @else 呀?
? position: absolute;
? @if $offset-top {
??? top: $offset-top;
? } @else {
?? ?top: 0;
? }
?
2022-01-03
這個條件不是一樣嗎