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

Chrome 浏览器复制文章内容到微信公众号编辑器带上了字体 #10

Open
zhyq0826 opened this issue Oct 9, 2017 · 0 comments

Comments

@zhyq0826
Copy link
Member

zhyq0826 commented Oct 9, 2017

用 Chrome 最新的浏览器打开 markdown-css 生成的 html ,如果 css 不指定任何字体,也就是没有 font-family,复制到微信编辑器之后会内联 css 会带上 font-family: "PingFang SC" ,由于微信公众号没有这个字体,微信会把 css 样式去掉,格式会乱,解决方法是

  1. 换用其他浏览器,mac 上 Safari 可以
  2. css 中指定 font-family,但字体一定要在微信自带的浏览器中存在
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant