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 全局属性的选择器可以使用 article,语义化更好一些 #58

Closed
mytharcher opened this issue Oct 9, 2019 · 2 comments
Closed
Assignees
Labels

Comments

@mytharcher
Copy link

mytharcher commented Oct 9, 2019

新特性描述: 如题,<article> 是 HTML5 支持的标签,可以用作整个文章的区块元素,同理还可以用 <footer>,比 .layout/.footer-*要更清晰,也更原生。

@guanpengchn
Copy link
Collaborator

@mytharcher 我印象中最开始也是这么设计的,但是后来发现微信编辑器只支持section,换了其他的div、article、footer这些都不行,你可以实验一下,写一段如下的html代码,然后拷贝到编辑器中,再点击复制

<article style="balabala">
balabala
</article>

再拷贝到微信编辑器中,很可能行内样式不会生效

@mytharcher
Copy link
Author

测试了好像的确是这样,感谢解答。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants