官方是这样解释的:
:global switches to global scope for the current selector resp. identifier. :global(.xxx) resp. @keyframes :global(xxx) declares the stuff in brackets in the global scope.
感觉用法差不多,实验了几次结果都是一样的,请问这两个有什么区别,实在什么情况下使用的?
官方是这样解释的:
:global switches to global scope for the current selector resp. identifier. :global(.xxx) resp. @keyframes :global(xxx) declares the stuff in brackets in the global scope.
感觉用法差不多,实验了几次结果都是一样的,请问这两个有什么区别,实在什么情况下使用的?
3 回答5.1k 阅读✓ 已解决
5 回答2k 阅读
2 回答1.9k 阅读✓ 已解决
1 回答3k 阅读✓ 已解决
3 回答2.4k 阅读
4 回答2.2k 阅读
5 回答1.9k 阅读
:global(xxx) 可以写成 .abc :global(xxx) {...}
:global可以写成
:global {
}