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

样式丢失问题 #119

Open
JeremyWu917 opened this issue Dec 30, 2021 · 3 comments
Open

样式丢失问题 #119

JeremyWu917 opened this issue Dec 30, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@JeremyWu917
Copy link
Member

Hi
我用 htmlcss 写了一个 Card,代码如下 👇

<div style="margin: auto; width:250px; box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2), 0 6px 20px 0 rgba(0,0,0,0.19); text-align: center; border-radius: 10px; box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); box-shadow: 0 0 20px #a812ff;">
   <img style="width:20%; height:20%;" src="https://gitee.com/jeremywuiot/img-res-all/raw/master/src/iie_shop/tack_purple_128x128.png"/>
   <img src="https://gitee.com/jeremywuiot/img-res-all/raw/master/src/iie_shop/wechat_qr_code_2021_02.png" style="width:100%"/>
      <img style="width:15%; height:15%; position: relative; top: 0px;left: 0px;" src="https://gitee.com/jeremywuiot/img-res-all/raw/master/src/iie_shop/tada.gif" />
      <div style="padding: 1px;">
         <p style="font-size:12px; color: #a812ff">长按关注公众号 ⌈全栈民工⌋ 🎉</p>
         <p style="font-size:12px; color: #a812ff">原创技术文章第一时间推送 🙌</p>
      </div>
</div>

md 中显示正常,如下 👇
image

但是复制到公众号编辑器里,显示就比较奇怪了,看起来样式丢失了 🐛
image

环境如下:

  • OS - Windows 11 Professional 21H2
  • Browser - Microsoft Edge 96.0.1054.62

Thanks ☕

@yanglbme
Copy link
Member

@JeremyWu917 两个问题

  1. 微信图文不支持 div 标签(微信官方限制,一般是用 section 标签代替)
  2. 编辑器对自定义样式的支持暂时还比较有限(待优化)

@JeremyWu917
Copy link
Member Author

@yanglbme 感谢回复!
刚刚接触公众号运营,见笑了😅
我来看看能否优化一下,谢谢🙏

@yanglbme
Copy link
Member

欢迎提交 pull request

@yanglbme yanglbme added the bug Something isn't working label Jan 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants