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

taro 使用伪元素实现*号,编译报错 #94

Closed
anranyuqing opened this issue Aug 8, 2023 · 2 comments
Closed

taro 使用伪元素实现*号,编译报错 #94

anranyuqing opened this issue Aug 8, 2023 · 2 comments

Comments

@anranyuqing
Copy link

使用方式:

  <text class="text-28 my-2 ml-1 after:content-['*'] after:ml-0.5 after:text-red-500">用户昵称</text>

报错内容

  [ WXSS 文件编译错误] ./app.wxss  unexpected "\" at pos 23215 > 1
![image](https://github.com/MellowCo/unocss-preset-weapp/assets/109772818/c0072fb7-efb3-4d55-95ac-03f427aeb885)

插件配置

presetWeapp(
      {
        isH5: process.env.TARO_ENV === 'h5',
        platform: 'taro',
        taroWebpack: 'webpack5',
        dark: 'class'
      },
    ),

@MellowCo
Copy link
Owner

MellowCo commented Aug 8, 2023

这是小程序的问题啊 小程序就是不支持*的

@MellowCo
Copy link
Owner

MellowCo commented Aug 8, 2023

小程序不要用 * 选择器

@MellowCo MellowCo closed this as completed Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants