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

[Feature Request] 在编译 h5 时希望能将样式中的标签选择器转换成对应的html 标签 #542

Closed
vimcaw opened this issue Aug 29, 2018 · 2 comments

Comments

@vimcaw
Copy link
Contributor

vimcaw commented Aug 29, 2018

希望样式文件里标签选择器中的这些 Taro 元素 (比如ViewText)在编译 h5 时能转换成对应的html 标签

比如:

.goods View {
  color: #666;
}
.part Text {
  font-size: .8em;
}

在编译 h5 时转换成:

.goods div {
  color: #666;
}
.part span {
  font-size: .8em;
}
@vimcaw vimcaw changed the title 编译 h5 样式时希望能转换标签选择器 [Feature Request] 在编译 h5 时希望能将样式中的标签选择器转换成对应的html 标签 Aug 29, 2018
@luckyadam
Copy link
Member

写的时候注意一下呢~ 或者都用类选择器~

@stale
Copy link

stale bot commented Oct 28, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

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