教程中是这样@if($condition, $condition_true, $condition_false),示例中是这样:font-weight: if($fontBold, bold, normal);前面少了个@吧?