Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

css *选择器报错 #11527

Closed
scrapstation opened this issue Mar 29, 2022 · 2 comments
Closed

css *选择器报错 #11527

scrapstation opened this issue Mar 29, 2022 · 2 comments
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x

Comments

@scrapstation
Copy link

相关平台

微信小程序

小程序基础库: 2.22.0
使用框架: React

复现步骤

.order-items-card {
margin: 20px;
padding: 20px;
background-color: #fff;
border-radius: 20px;

*:not(:first-child) {
border: 1px solid red;
margin-top: 20px;
}
.order-item {
display: flex;
flex-wrap: wrap;
}
}

期望结果

正常运行

实际结果

error at token "*"
10 | }
11 |

12 | .order-items-card > *:not(:first-child) {
| ^
13 | border: 1rpx solid red;
14 | margin-top: 20rpx;
15 | }
at

环境信息

Taro CLI 3.4.2 environment info:
    System:
      OS: Windows 10
    Binaries:
      Node: 16.13.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.15 - C:\Program Files\nodejs\yarn.CMD
      npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
@taro-bot2 taro-bot2 bot added F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x labels Mar 29, 2022
@z0ffy
Copy link
Contributor

z0ffy commented Mar 29, 2022

不支持* 选择器

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
F-react Framework - React T-weapp Target - 编译到微信小程序 V-3 Version - 3.x
Projects
None yet
Development

No branches or pull requests

2 participants