8***@qq.com
8***@qq.com
  • 发布:2025-02-17 16:07
  • 更新:2025-02-17 16:11
  • 阅读:75

打包h5后打开报错:":--0" to ":state(0)"

分类:uni-app

打包h5后打开报错,提示:[Deprecation]Custom state pseudo classes have been changed from ":--0" to ":state(0)". See more here: https://github.com/w3c/csswg-drafts/issues/4805
什么原因,怎么修改

2025-02-17 16:07 负责人:无 分享
已邀请:
恭喜n发财

恭喜n发财 - 恭喜恭喜恭喜你呀

/ 旧写法 /
.component:--active {
color: red;
}

/ 新写法 /
.component:state(active) {
color: red;
}

可以搜索下:--

  • 8***@qq.com (作者)

    没有使用:--,只有使用着:-,但也是只用着::-webkit-scrollbar,注释了重新打包还是不行

    2025-02-17 16:22

要回复问题请先登录注册