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 中转义反斜杠时遇到了一些问题。这是我的代码:
&.room { &:after { content:"\"; } }
任何帮助将不胜感激,非常感谢。
&.room { &:after { content:"\\"; } }
刚刚遇到这个问题,转义引号会保留转义反斜杠
content: ~"\"";
生产
content: \";
可以参考官方仓库less。问题
less
或者正如@SLC提到的,可以使用双反斜杠。