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

期望支持数字类型的 class name #1724

Closed
hualigushi opened this issue Dec 16, 2024 · 3 comments
Closed

期望支持数字类型的 class name #1724

hualigushi opened this issue Dec 16, 2024 · 3 comments

Comments

@hualigushi
Copy link
Contributor

期望支持如下写法的样式

.404 {
  margin: 0 24px;
  padding-bottom: 40px;
}
@stormslowly
Copy link
Member

我记得 .404 在 css 中就是一个非法的选择器名字

@stormslowly
Copy link
Member

需要转义下

.\34 04 {
  color: yellow;
}
 '4'.charCodeAt(0).toString(16)   // 34

@sorrycc
Copy link
Member

sorrycc commented Dec 16, 2024

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

3 participants