Css 你能在SASS文件中使用Firefox@-moz文档指令吗?
因此,您可以使用以下CSS仅覆盖Firefox中的样式:Css 你能在SASS文件中使用Firefox@-moz文档指令吗?,css,firefox,sass,mindscape,Css,Firefox,Sass,Mindscape,因此,您可以使用以下CSS仅覆盖Firefox中的样式: button.needs-overridden-in-firefox { line-height: 20px; padding: 6px 16px; } @-moz-document url-prefix() { /* firefox line-height behaves differently, compensate with padding-top */ button.needs-overrid
button.needs-overridden-in-firefox {
line-height: 20px;
padding: 6px 16px;
}
@-moz-document url-prefix() {
/* firefox line-height behaves differently, compensate with padding-top */
button.needs-overridden-in-firefox {
padding-top: 0;
}
}
…但这可以作为样式写入SASS文件吗?我尝试了以下方法,但mindscape web workbench的编译器出现了一个编译器错误
@-moz-document url-prefix() {
button.needs-overridden-in-firefox {
padding-top: 0;
}
}
尝试升级您的Sass版本(我使用的是edge/beta版本,没有出现错误)。我支持@cimmanon所说的。。。下面是一个在SassMister上运行良好的例子:谢谢你们,更新到最新的mindscape webworkbench似乎可以编译这个。嗯,它不会在预处理器中抛出错误,但在更新的Firefox中不再工作,是吗?我用的是FF 48。