wxss 语法无法支持 ~ 选择器吗?
在wxss加入了一段css之后,开发工具突然就报错了
.photo image:first-child:nth-last-child(2) { width: 66.6666667%; height: 100%; clip-path: polygon(0 0, 100% 0, 50% 100%, 0 100%)}.photo image:nth-of-type(2) { width: 66.6666667%; height: 100%; left: 33.3333333%; clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%)}.photo image:first-child:nth-last-child(3) { width: 50%; height: 100%}.photo image:first-child:nth-last-child(3)~image:nth-of-type(2) { width: 50%; height: 50%; left: 50%} |
下面是模拟器的报错信息
Error:in File: ./pages/example/example.wxss unexpected token "~" ....... |
这种原因是因为小程序的wxss语法不支持组合选择器吗?
