Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有兴趣让我的 LESS 文件的一小部分出现在我处理过的 CSS 文件中,而不必被识别为有效的 LESS。有没有办法做到这一点?
LESS 有一个转义语法,它使用带有前缀的双引号字符串~,这行得通吗?
~
在文档示例中:
.class { filter: ~"ms:alwaysHasItsOwnSyntax.For.Stuff()"; }
输出为
.class { filter: ms:alwaysHasItsOwnSyntax.For.Stuff(); }