在使用sass开发中,经常会用到混合宏、继承和占位符,它们三者的功能都相同,我们使用时应该根据它们的特点来决定使用哪一个。混合宏:有参数需要传递的时候;继承:不用改变样式,而且有一个基类(声明样式)文件;占位符:独立的定义,不调用就不会出现在css中,使代码不冗余。