1 <style lang="less" scoped>
2 .text-box {
3   /deep/ input {
4     width: 166px;
5     text-align: center;
6   }
7 }
8 </style>

有些像 Sass 之类的预处理器无法正确解析 >>>。这种情况下你可以使用 /deep/ 操作符取而代之——这是一个 >>> 的别名,同样可以正常工作。

vue里使用less报错

 

相关文章:

  • 2021-06-25
  • 2021-10-14
  • 2021-11-01
  • 2021-05-26
  • 2021-12-10
  • 2022-01-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-02-19
  • 2021-08-29
  • 2022-12-23
  • 2021-11-23
  • 2021-10-09
相关资源
相似解决方案